mirror of
https://github.com/spliit-app/spliit.git
synced 2025-12-06 09:29:39 +01:00
committed by
GitHub
parent
4f43e8e42a
commit
1ed533d01f
@@ -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.' },
|
||||
|
||||
Reference in New Issue
Block a user