Skip to content

Commit ec433ab

Browse files
committed
Remove automatic BTC activation prompt
1 parent d3ab910 commit ec433ab

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/components/layouts/AccountOverview.vue

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ import { CryptoCurrency } from '../../lib/Constants';
135135
import { useBtcNetworkStore } from '../../stores/BtcNetwork';
136136
import { useSettingsStore } from '../../stores/Settings';
137137
138-
const BTC_ACTIVATION_SHOWN_STORAGE_KEY = 'btc-activation-modal-shown';
139-
140138
export default defineComponent({
141139
name: 'account-overview',
142140
setup(props, context) {
@@ -182,25 +180,8 @@ export default defineComponent({
182180
showModalLegacyAccountNotice.value = isLegacyAccount.value && width.value <= 960; // Tablet breakpoint
183181
}
184182
185-
function determineIfShowBtcActivationModal() {
186-
if (!activeAccountInfo.value) return;
187-
188-
// Showing the modal after login is handled in hub.ts
189-
if (hasBitcoinAddresses.value) return;
190-
191-
const isEligibleAccountType = activeAccountInfo.value.type === AccountType.BIP39;
192-
if (!isEligibleAccountType) return;
193-
194-
const alreadyShown = localStorage.getItem(BTC_ACTIVATION_SHOWN_STORAGE_KEY) || '0';
195-
if (alreadyShown === '1') return;
196-
197-
context.root.$router.push('/btc-activation');
198-
localStorage.setItem(BTC_ACTIVATION_SHOWN_STORAGE_KEY, '1');
199-
}
200-
201183
function determineModalToShow() {
202184
determineIfShowModalLegacyAccountNotice();
203-
determineIfShowBtcActivationModal();
204185
}
205186
206187
watch(activeAccountInfo, determineModalToShow);

0 commit comments

Comments
 (0)