diff --git a/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts b/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts index ebfb51d978..0f3aef3314 100644 --- a/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts +++ b/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts @@ -38,7 +38,7 @@ const useCalcalulatorByTeaHook = () => { return prevHistory; }); - return String(eval(prevExpression.replace('%', '*100/'))); + return String(eval(prevExpression.replace(/%/g, '*100/'))); }); } else if (action === 'C') { setCalculationExpression((prev) => {