diff --git a/frontend/src/components/Button.tsx b/frontend/src/components/Button.tsx index 96521d6..6781efb 100644 --- a/frontend/src/components/Button.tsx +++ b/frontend/src/components/Button.tsx @@ -40,9 +40,9 @@ const ModalButton = styled.button` } ` -export function Button({ children, onClick, style="primary" }: any) { +export function Button({ children, onClick, type="primary" }: any) { - if(style === "primary") { + if(type === "primary") { return ( {children} diff --git a/frontend/src/components/Game/GameOverModal.tsx b/frontend/src/components/Game/GameOverModal.tsx index 652d102..492df88 100644 --- a/frontend/src/components/Game/GameOverModal.tsx +++ b/frontend/src/components/Game/GameOverModal.tsx @@ -124,7 +124,7 @@ export const GameOverModal = ({ isOpen, onClose, type="Draw", endType="Stalemate } } } - }, [isOpen, displayedScore, elo]); + }, [isOpen, displayedScore, elo, newElo]); if(type === "Lose") { @@ -167,8 +167,8 @@ export const GameOverModal = ({ isOpen, onClose, type="Draw", endType="Stalemate {displayedScore} - - + + @@ -191,8 +191,8 @@ export const GameOverModal = ({ isOpen, onClose, type="Draw", endType="Stalemate {displayedScore} - - + +