Broken updates
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
} from '@mui/material';
|
||||
import { useScore, ACTIONS } from '../context/ScoreContext';
|
||||
|
||||
const GameSetup = () => {
|
||||
const GameSetup = ({ onGameStart }) => {
|
||||
const { dispatch } = useScore();
|
||||
|
||||
const startGame = (gameType) => {
|
||||
@@ -18,6 +18,7 @@ const GameSetup = () => {
|
||||
type: ACTIONS.START_NEW_ROUND,
|
||||
payload: { gameType }
|
||||
});
|
||||
onGameStart();
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user