From 5dfe1fbb98916f563f51920b24669288381dcecb Mon Sep 17 00:00:00 2001 From: code002lover Date: Mon, 12 Jan 2026 11:19:21 +0100 Subject: [PATCH] price rounding --- frontend/src/EditGame.tsx | 4 ++-- frontend/src/GameList.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/EditGame.tsx b/frontend/src/EditGame.tsx index d5dc733..bd245f5 100644 --- a/frontend/src/EditGame.tsx +++ b/frontend/src/EditGame.tsx @@ -333,9 +333,9 @@ export function EditGame({ onShowToast }: Props) { setPrice(Number(e.target.value.replace(',', '.')))} + onChange={(e) => setPrice(Math.ceil(Number(e.target.value.replace(',', '.'))))} min="0" - step="0.01" + step="1" style={inputStyles} className="add-game-input" /> diff --git a/frontend/src/GameList.tsx b/frontend/src/GameList.tsx index e5cbd61..d68a508 100644 --- a/frontend/src/GameList.tsx +++ b/frontend/src/GameList.tsx @@ -463,9 +463,9 @@ export function GameList({ onShowToast }: Props) { setPrice(Number(e.target.value.replace(',', '.')))} + onChange={(e) => setPrice(Math.ceil(Number(e.target.value.replace(',', '.'))))} min="0" - step="0.01" + step="1" style={inputStyles} className="add-game-input" />