Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonasek committed Jan 22, 2025
1 parent ccfabc8 commit 8dc2e91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sections/transaction/ReviewTransactionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export const ReviewTransactionForm: FC<Props> = (props) => {
const txData = tx.method.toHex()

if (shouldUsePermit) {
const nonce = customNonce ? BN(customNonce) : permitNonce ?? BN_0
const nonce = customNonce
? parseFloat(customNonce)
: permitNonce ?? 0
const permit = await wallet.signer.getPermit(txData, nonce)
return props.onPermitDispatched({
permit,
Expand Down

0 comments on commit 8dc2e91

Please sign in to comment.