Skip to content

Commit

Permalink
fix(app): pass correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Jan 6, 2025
1 parent 5c1abda commit 423c3e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/lib/components/TransferFrom/transfer/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function createValidationStore(
if (hasAllRequiredValues) {
const parseInput = {
...formFields,
balance: $intents.selectedAsset.balance?.toString(),
decimals: $intents.selectedAsset?.decimals
balance: $intents.selectedAsset.balance ?? 0n,
decimals: $intents.selectedAsset.decimals ?? 0
}
const schemaResult = safeParse(transferSchema, parseInput)
schemaValid = schemaResult.success
Expand Down Expand Up @@ -89,7 +89,7 @@ export function createValidationStore(
const parseInput = {
...formFields,
balance: selectedAsset.balance ?? 0n,
decimals: selectedAsset.supported?.decimals ?? 0
decimals: selectedAsset.decimals ?? 0
}

const schemaResult = safeParse(transferSchema, parseInput)
Expand Down

0 comments on commit 423c3e6

Please sign in to comment.