Skip to content

Commit

Permalink
fix: prevent withdrawal of zero amount to avoid unnecessary fees (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 authored Nov 5, 2024
1 parent bbb18df commit 6584526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => {

const formSchema = z.object({
address: z.string().startsWith("0x").length(42),
amount: z.number().min(0).max(cashablePowerTokenNumber),
amount: z.number().positive().max(cashablePowerTokenNumber),
})

const form = useForm<z.infer<typeof formSchema>>({
Expand Down

0 comments on commit 6584526

Please sign in to comment.