diff --git a/packages/openchs-android/src/action/LoginActions.js b/packages/openchs-android/src/action/LoginActions.js index 18b7ea1f0..11b529b8d 100644 --- a/packages/openchs-android/src/action/LoginActions.js +++ b/packages/openchs-android/src/action/LoginActions.js @@ -119,7 +119,7 @@ class LoginActions { let newState = _.assignIn({}, state, {percentProgress: 0}); //restore dump calls dispatch internally setTimeout(() => { - restoreDump(context, action, action.source); + restoreDump(context, action, action.source, action.successCb); }, 1); return newState; } diff --git a/packages/openchs-android/src/service/BackupRestoreRealm.js b/packages/openchs-android/src/service/BackupRestoreRealm.js index 113cc534c..b29c9bce3 100644 --- a/packages/openchs-android/src/service/BackupRestoreRealm.js +++ b/packages/openchs-android/src/service/BackupRestoreRealm.js @@ -1,4 +1,4 @@ -import {EntityMetaData, EntitySyncStatus, IdentifierAssignment, UserInfo, Concept, MyGroups, UserSubjectAssignment} from 'avni-models'; +import {EntitySyncStatus, IdentifierAssignment, UserInfo, Concept, MyGroups, UserSubjectAssignment} from 'openchs-models'; import FileSystem from "../model/FileSystem"; import General from "../utility/General"; import fs from 'react-native-fs';