Skip to content

Commit 7303129

Browse files
fix(extension): some storage variables might not be available (#1485)
1 parent 4fb546e commit 7303129

File tree

1 file changed

+1
-1
lines changed
  • apps/browser-extension-wallet/src/lib/scripts/background

1 file changed

+1
-1
lines changed

apps/browser-extension-wallet/src/lib/scripts/background/cip30.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const confirmationCallback: walletCip30.CallbackConfirmation = {
7979
async (args) => {
8080
try {
8181
const { namiMigration } = await getBackgroundStorage();
82-
if (namiMigration.mode === 'nami') {
82+
if (namiMigration?.mode === 'nami') {
8383
// User has to explicitly set collateral from the popup UI
8484
return [];
8585
}

0 commit comments

Comments
 (0)