diff --git a/src/tenebra/wallets/functions/syncWallets.ts b/src/tenebra/wallets/functions/syncWallets.ts index 6fd4093..dfceb91 100644 --- a/src/tenebra/wallets/functions/syncWallets.ts +++ b/src/tenebra/wallets/functions/syncWallets.ts @@ -62,11 +62,11 @@ export function syncWalletUpdate( wallet: Wallet, address: TenebraAddressWithNames | null, - stake: TenebraStake | null, + stake?: TenebraStake | null, dontSave?: boolean ): void { const syncTime = new Date(); - const updatedWallet = syncWalletProperties(wallet, address, stake, syncTime); + const updatedWallet = syncWalletProperties(wallet, address, stake ?? null, syncTime); // Save the wallet to local storage, unless this was an external sync action if (!dontSave) saveWallet(updatedWallet);