Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: provide default account value if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Apr 24, 2023
1 parent b58cab9 commit 13e4549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/IO/transform-method-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
export const provideDefaultNumberOfAccounts = (
value: Partial<NumberOfAccounts>
): NumberOfAccounts => ({
quantity: value?.quantity || 1,
quantifier: value?.quantifier || 'atLeast',
quantity: value?.quantity ?? 1,
quantifier: value?.quantifier ?? 'atLeast',
})

const removeResetForUnauthorizedRequest = (value: WalletInteractionItems) => {
Expand Down

0 comments on commit 13e4549

Please sign in to comment.