diff --git a/build.zip b/build.zip new file mode 100644 index 0000000..dc73e00 Binary files /dev/null and b/build.zip differ diff --git a/src/components/Main/Main.tsx b/src/components/Main/Main.tsx index 9bb4c45..a8eb1ae 100644 --- a/src/components/Main/Main.tsx +++ b/src/components/Main/Main.tsx @@ -36,8 +36,7 @@ export const Main: React.FC = ({ visible, setVisible }) => { dispatch(createSession(currentCard.title))} - visible={visible} + onConnect={() => dispatch(createSession(currentCard.title))} visible={visible} setVisible={setVisible} > diff --git a/src/components/playerComponent/playerComponent.tsx b/src/components/playerComponent/playerComponent.tsx index 0766cfb..7f5d987 100644 --- a/src/components/playerComponent/playerComponent.tsx +++ b/src/components/playerComponent/playerComponent.tsx @@ -18,13 +18,12 @@ export const PlayerComponent: React.FC = ({ closeStream, dispatch }) => { return ( <> - {data && ( - - )} + ) => { state.isLoading = false; state.data = action.payload; + localStorage.setItem('data', JSON.stringify(initialState.data)) }, [createSession.rejected.type]: (state, action: PayloadAction) => { state.isLoading = false;