aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/gifts.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/gifts.js')
-rw-r--r--src/features/gifts.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/gifts.js b/src/features/gifts.js
index e4a445f..7cc9e9c 100644
--- a/src/features/gifts.js
+++ b/src/features/gifts.js
@@ -70,6 +70,9 @@ export function giftsFeature(ctx) {
ui.claimLocked = null;
ui.claimArkAmount = null;
const targets = claimTargets();
+ // No wallets on this device: adopt the gift's network so a first-timer
+ // never has to visit Settings before claiming.
+ if (!targets.length) hook('arkGiftAdoptNetwork', code);
if (targets.length) { setAccounts(targets); ui.claimChoose = { code }; render(); }
else enterWallet(newMnemonic(), '', { gift: code });
}