Fix crash when logging without "Remember Me" checkbox

This commit is contained in:
Alexander Zinchuk 2021-04-29 03:01:41 +03:00
parent a06e0152d0
commit 6bb81a8c0d

View File

@ -1,4 +1,4 @@
import { getDispatch } from '../lib/teact/teactn';
import { getDispatch, getGlobal } from '../lib/teact/teactn';
import { DEBUG } from '../config';
@ -9,4 +9,6 @@ if (DEBUG) {
console.log('>>> FINISH LOAD MAIN BUNDLE');
}
getDispatch().initApi();
if (!getGlobal().connectionState) {
getDispatch().initApi();
}