diff --git a/frontend/src/components/Block/Block.tsx b/frontend/src/components/Block/Block.tsx index fb040c940..70e46e135 100644 --- a/frontend/src/components/Block/Block.tsx +++ b/frontend/src/components/Block/Block.tsx @@ -67,7 +67,7 @@ const Block = () => { // Current block state const [actions, setActions] = useState([]); const [state, setState] = useState(startState); - const [key, setKey] = useState(null); + const [key, setKey] = useState(Math.random()); const playlist = useRef(null); // API hooks @@ -213,6 +213,7 @@ const Block = () => { onResult, onNext, playlist, + key, ...state, }; @@ -221,27 +222,27 @@ const Block = () => { // Block views // ------------------------- case "TRIAL_VIEW": - return ; + return ; // Information & Scoring // ------------------------- case "EXPLAINER": - return ; + return ; case "SCORE": - return ; + return ; case "FINAL": - return ; + return ; // Generic / helpers // ------------------------- case "PLAYLIST": - return ; + return ; case "LOADING": - return ; + return ; case "CONSENT": - return ; + return ; case "INFO": - return ; + return ; case "REDIRECT": window.location.replace(state.url); return null;