Skip to content

Commit

Permalink
Name refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinusX committed Oct 11, 2017
1 parent 8585d0d commit fbf72a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/logic/redux_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class ReduxState {
ReduxState stateReducer(ReduxState state, action) {
if (action is InitAction) {
FirebaseDatabase.instance.setPersistenceEnabled(true);
_loginAnonymous(state).then((nil) => _updateFirebaseAuth(state, action));
_loginAnonymous(state).then((nil) =>
_updateFirebaseDatabase(state, action));
} else if (action is LocalAddAction) {
_addEntry(state, action.weightEntry);
} else if (action is LocalEditAction) {
Expand All @@ -73,7 +74,7 @@ Future<Null> _loginAnonymous(ReduxState state) async {
}
}

_updateFirebaseAuth(ReduxState state, InitAction action) async {
_updateFirebaseDatabase(ReduxState state, InitAction action) async {
state.mainReference = FirebaseDatabase.instance
.reference()
.child(state.firebaseUser.uid)
Expand Down

0 comments on commit fbf72a0

Please sign in to comment.