diff --git a/client/react-native/gomobile/core/core.go b/client/react-native/gomobile/core/core.go index 2fa43ff045..777ae29bbb 100644 --- a/client/react-native/gomobile/core/core.go +++ b/client/react-native/gomobile/core/core.go @@ -111,7 +111,7 @@ func initOrRestoreAppState(datastorePath string) error { LocalGRPC: initiallocalGRPC, } - appState, err := account.OpenStateDB(datastorePath+"berty.state.db", initialState) + appState, err := account.OpenStateDB(datastorePath+"/berty.state.db", initialState) if err != nil { return errors.Wrap(err, "state DB init failed") } diff --git a/client/react-native/gomobile/core/network.go b/client/react-native/gomobile/core/network.go index cf3938a4f0..a3f46c5db6 100644 --- a/client/react-native/gomobile/core/network.go +++ b/client/react-native/gomobile/core/network.go @@ -102,7 +102,7 @@ func UpdateNetworkConfig(jsonConf string) error { return errors.Wrap(err, "state DB save failed") } - // if Create is successfull assign the newState to our global + // if Create is successful assign the newState to our global appConfig = newState return nil