Skip to content

Commit 3fb9a39

Browse files
authored
Merge pull request #1765 from wavesplatform/dexw-2282-dayX-old
Dexw 2282 day x old
2 parents 008fdce + 95dafcc commit 3fb9a39

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

data-service/utils/ConfigService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ export class ConfigService {
3030

3131
protected wavesApp: any;
3232

33-
protected _instance: ConfigService | null = null;
33+
protected static _instance: ConfigService | void;
3434

3535
public change = new Signal() as Signal<string>;
3636

3737
public configReady: Promise<any>;
3838

3939
constructor(wavesApp: any) {
40-
if (this._instance) {
41-
return this._instance;
40+
if (ConfigService._instance) {
41+
return ConfigService._instance;
4242
}
43-
this._instance = this;
43+
ConfigService._instance = this;
4444
this.wavesApp = wavesApp;
4545
this.configReady = this.fetchConfig();
4646
}

src/modules/app/initialize/AppRun.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@
185185
});
186186
}
187187

188-
if (configService.get('DEXW_LOCKED') && $state.current.name !== 'migration') {
189-
$state.go('migration');
190-
} else {
191-
$state.go('signIn');
192-
}
193-
194-
195188
$rootScope.WavesApp = WavesApp;
196189
}
197190

@@ -415,7 +408,7 @@
415408
const START_STATES = WavesApp.stateTree.where({ noLogin: true })
416409
.map((item) => WavesApp.stateTree.getPath(item.id).join('.'));
417410

418-
const DEXW_LOCKED_STATES = ['migration', 'signIn'];
411+
const DEXW_LOCKED_STATES = ['migration'];
419412

420413
const offInitialTransitions = $transitions.onStart({}, transition => {
421414
const DEXW_LOCKED = configService.get('DEXW_LOCKED');

0 commit comments

Comments
 (0)