diff --git a/src/components/cards/cards.jsx b/src/components/cards/cards.jsx index 66c9e91e347448147f2bec316e1acc009fc556d2..b69169800b34e21b91c288a671d1e3cbdfad940d 100644 --- a/src/components/cards/cards.jsx +++ b/src/components/cards/cards.jsx @@ -104,6 +104,9 @@ class VideoStep extends React.Component { // We use the Wistia API here to update or pause the video dynamically: // https://wistia.com/support/developers/player-api componentDidUpdate (prevProps) { + // Ensure the wistia API is loaded and available + if (!(window.Wistia && window.Wistia.api)) return; + // Get a handle on the currently loaded video const video = window.Wistia.api(prevProps.video);