Browse Source

[RN] Fix incorrect JitsiMeetJS.init error handling

master
Lyubomir Marinov 8 years ago
parent
commit
b8f28abfdf

+ 1
- 1
react/features/base/lib-jitsi-meet/actions.js View File

49
             .catch(error => {
49
             .catch(error => {
50
                 dispatch({
50
                 dispatch({
51
                     type: LIB_INIT_ERROR,
51
                     type: LIB_INIT_ERROR,
52
-                    lib: { error }
52
+                    error
53
                 });
53
                 });
54
 
54
 
55
                 // TODO Handle LIB_INIT_ERROR error somewhere instead.
55
                 // TODO Handle LIB_INIT_ERROR error somewhere instead.

+ 1
- 1
react/features/base/lib-jitsi-meet/reducer.js View File

55
         case LIB_INIT_ERROR:
55
         case LIB_INIT_ERROR:
56
             return {
56
             return {
57
                 ...state,
57
                 ...state,
58
-                initializationError: action.lib.error,
58
+                initializationError: action.error,
59
                 initialized: false
59
                 initialized: false
60
             };
60
             };
61
 
61
 

Loading…
Cancel
Save