chayns-api 2.4.14 → 2.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -365,14 +365,14 @@ class AppWrapper {
|
|
|
365
365
|
loginState: _IChaynsReact.LoginState.SUCCESS,
|
|
366
366
|
...result
|
|
367
367
|
};
|
|
368
|
-
callback(response);
|
|
368
|
+
if (callback) callback(response);
|
|
369
369
|
return response;
|
|
370
370
|
}
|
|
371
371
|
const response = {
|
|
372
372
|
loginState: _IChaynsReact.LoginState.LoginFailed,
|
|
373
373
|
...result
|
|
374
374
|
};
|
|
375
|
-
closeCallback(response);
|
|
375
|
+
if (closeCallback) closeCallback(response);
|
|
376
376
|
return response;
|
|
377
377
|
},
|
|
378
378
|
logout: async () => {
|
|
@@ -331,14 +331,14 @@ export class AppWrapper {
|
|
|
331
331
|
loginState: LoginState.SUCCESS,
|
|
332
332
|
...result
|
|
333
333
|
};
|
|
334
|
-
callback(response);
|
|
334
|
+
if (callback) callback(response);
|
|
335
335
|
return response;
|
|
336
336
|
}
|
|
337
337
|
const response = {
|
|
338
338
|
loginState: LoginState.LoginFailed,
|
|
339
339
|
...result
|
|
340
340
|
};
|
|
341
|
-
closeCallback(response);
|
|
341
|
+
if (closeCallback) closeCallback(response);
|
|
342
342
|
return response;
|
|
343
343
|
},
|
|
344
344
|
logout: async () => {
|