Fix crash when logging without "Remember Me" checkbox
This commit is contained in:
parent
a06e0152d0
commit
6bb81a8c0d
@ -1,4 +1,4 @@
|
|||||||
import { getDispatch } from '../lib/teact/teactn';
|
import { getDispatch, getGlobal } from '../lib/teact/teactn';
|
||||||
|
|
||||||
import { DEBUG } from '../config';
|
import { DEBUG } from '../config';
|
||||||
|
|
||||||
@ -9,4 +9,6 @@ if (DEBUG) {
|
|||||||
console.log('>>> FINISH LOAD MAIN BUNDLE');
|
console.log('>>> FINISH LOAD MAIN BUNDLE');
|
||||||
}
|
}
|
||||||
|
|
||||||
getDispatch().initApi();
|
if (!getGlobal().connectionState) {
|
||||||
|
getDispatch().initApi();
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user