@@ -135,8 +135,6 @@ import { CryptoCurrency } from '../../lib/Constants';
135
135
import { useBtcNetworkStore } from ' ../../stores/BtcNetwork' ;
136
136
import { useSettingsStore } from ' ../../stores/Settings' ;
137
137
138
- const BTC_ACTIVATION_SHOWN_STORAGE_KEY = ' btc-activation-modal-shown' ;
139
-
140
138
export default defineComponent ({
141
139
name: ' account-overview' ,
142
140
setup(props , context ) {
@@ -182,25 +180,8 @@ export default defineComponent({
182
180
showModalLegacyAccountNotice .value = isLegacyAccount .value && width .value <= 960 ; // Tablet breakpoint
183
181
}
184
182
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
-
201
183
function determineModalToShow() {
202
184
determineIfShowModalLegacyAccountNotice ();
203
- determineIfShowBtcActivationModal ();
204
185
}
205
186
206
187
watch (activeAccountInfo , determineModalToShow );
0 commit comments