@@ -135,8 +135,6 @@ import { CryptoCurrency } from '../../lib/Constants';
135135import { useBtcNetworkStore } from ' ../../stores/BtcNetwork' ;
136136import { useSettingsStore } from ' ../../stores/Settings' ;
137137
138- const BTC_ACTIVATION_SHOWN_STORAGE_KEY = ' btc-activation-modal-shown' ;
139-
140138export 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