Skip to content

Commit

Permalink
Merge branch 'main' into alert-autofix-13
Browse files Browse the repository at this point in the history
  • Loading branch information
priyankarpal authored Oct 10, 2024
2 parents 65786f8 + 22d3eed commit c105be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c105be5

Please sign in to comment.