[RN] Fix incorrect JitsiMeetJS.init error handling
This commit is contained in:
parent
9ac7c97e67
commit
b8f28abfdf
|
@ -49,7 +49,7 @@ export function initLib() {
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: LIB_INIT_ERROR,
|
type: LIB_INIT_ERROR,
|
||||||
lib: { error }
|
error
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO Handle LIB_INIT_ERROR error somewhere instead.
|
// TODO Handle LIB_INIT_ERROR error somewhere instead.
|
||||||
|
|
|
@ -55,7 +55,7 @@ ReducerRegistry.register(
|
||||||
case LIB_INIT_ERROR:
|
case LIB_INIT_ERROR:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
initializationError: action.lib.error,
|
initializationError: action.error,
|
||||||
initialized: false
|
initialized: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue