[RN] Fix incorrect JitsiMeetJS.init error handling

This commit is contained in:
Lyubomir Marinov 2017-02-16 13:57:01 -06:00
parent 9ac7c97e67
commit b8f28abfdf
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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
}; };