mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-04 20:06:11 +01:00
committed by
GitHub
parent
4f43e8e42a
commit
1ed533d01f
@@ -53,7 +53,7 @@ export const expenseFormSchema = z.object({
|
|||||||
code: z.ZodIssueCode.custom,
|
code: z.ZodIssueCode.custom,
|
||||||
message: 'Invalid number.',
|
message: 'Invalid number.',
|
||||||
})
|
})
|
||||||
return Math.floor(valueAsNumber * 100)
|
return Math.round(valueAsNumber * 100)
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
{ required_error: 'You must enter an amount.' },
|
{ required_error: 'You must enter an amount.' },
|
||||||
|
|||||||
Reference in New Issue
Block a user