From f286efb17462f3c8a05b4e4d03ba210f419977a8 Mon Sep 17 00:00:00 2001 From: karamvir Date: Thu, 17 Aug 2023 15:34:44 -0700 Subject: [PATCH] ensure proper number handling by configinput --- frontend/src/components/config/again.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/config/again.tsx b/frontend/src/components/config/again.tsx index 21c863f75..2be1f77da 100644 --- a/frontend/src/components/config/again.tsx +++ b/frontend/src/components/config/again.tsx @@ -39,8 +39,10 @@ export const ConfigAgain = ["config"]>({ return ( set({ [key]: value } as Partial)} + value={Number(value)} + onChange={(value) => + set({ [key]: Number(value) } as Partial) + } /> ); case "boolean":