From 54b03fcfc83735eaaf31e622bdc9307abc91c8d8 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Sat, 31 Oct 2026 00:08:23 +0100 Subject: [PATCH] prevent page reload when pressing enter --- src/components/calculator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/calculator.tsx b/src/components/calculator.tsx index 0b28cd1..f563f75 100644 --- a/src/components/calculator.tsx +++ b/src/components/calculator.tsx @@ -37,7 +37,7 @@ const Calculator = () => { return (
-
+ e.preventDefault()}>