Skip to content

Commit

Permalink
hotfix: add validation for voucher value
Browse files Browse the repository at this point in the history
  • Loading branch information
williamluke4 committed Aug 24, 2024
1 parent 3db17db commit c4a5dd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from "zod";
export const valueAndSupplySchema = z.object({
uoa: z.string().trim(),
value: z.coerce.number(),
value: z.coerce.number().int('Value must be an integer. '),
supply: z.coerce.number(), // Initial Mint
});
export type ValueAndSupplyFormValues = z.infer<typeof valueAndSupplySchema>;

0 comments on commit c4a5dd2

Please sign in to comment.