aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/schemas.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/schemas.ts')
-rw-r--r--src/lib/schemas.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts
index ec7f3fa..9c79355 100644
--- a/src/lib/schemas.ts
+++ b/src/lib/schemas.ts
@@ -53,7 +53,7 @@ export const expenseFormSchema = z.object({
code: z.ZodIssueCode.custom,
message: 'Invalid number.',
})
- return Math.floor(valueAsNumber * 100)
+ return Math.round(valueAsNumber * 100)
}),
],
{ required_error: 'You must enter an amount.' },