Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalsine85 committed Jan 24, 2025
1 parent c0bd70a commit 71c56c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/launchpad/app/components/atom-forms/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ export const createDepositSchema = (minDeposit: string) =>
return false
}

// TODO: Figure out why validation isn't working in this block
// if (balance && amount > balance) {
// ctx.addIssue({
// code: z.ZodIssueCode.custom,
// message: `Insufficient balance`,
// })
// return false
// }

return true
} catch (e) {
ctx.addIssue({
Expand Down

0 comments on commit 71c56c1

Please sign in to comment.