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