From 213155f9e4af1d3e8fe3fff055350efffad68c79 Mon Sep 17 00:00:00 2001 From: alegarman2002 <116609314+alegarman2002@users.noreply.github.com> Date: Tue, 30 Apr 2024 00:01:44 +0200 Subject: [PATCH] Hotfix added default to calculator --- webapp/src/components/game/Calculator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/components/game/Calculator.js b/webapp/src/components/game/Calculator.js index c259c06d..3b582cf5 100644 --- a/webapp/src/components/game/Calculator.js +++ b/webapp/src/components/game/Calculator.js @@ -104,6 +104,8 @@ const Calculator = () => { case 'รท': correctAnswer = Math.round(num1 / num2); break; + default: + break; } const option = [correctAnswer];