Correct logo
This commit is contained in:
parent
2580fded14
commit
85d8e38c0f
|
|
@ -73,10 +73,10 @@ class MenuDrawerVM {
|
|||
message: AppLocalization.of(context).logout,
|
||||
context: context,
|
||||
callback: () async {
|
||||
if (store.state.user.isConnectedToGoogle) {
|
||||
await googleSignOut();
|
||||
}
|
||||
store.dispatch(UserLogout(context));
|
||||
if (store.state.user.isConnectedToGoogle) {
|
||||
googleSignOut();
|
||||
}
|
||||
});
|
||||
},
|
||||
onCompanyChanged:
|
||||
|
|
|
|||
|
|
@ -79,8 +79,7 @@ class UserDetailsVM {
|
|||
callback: () {
|
||||
passwordCallback(
|
||||
context: context,
|
||||
callback: (password, idToken) async {
|
||||
await googleSignOut();
|
||||
callback: (password, idToken) {
|
||||
store.dispatch(
|
||||
SaveAuthUserRequest(
|
||||
user: state.user.rebuild((b) => b..oauthProvider = ''),
|
||||
|
|
@ -89,6 +88,7 @@ class UserDetailsVM {
|
|||
completer: completer,
|
||||
),
|
||||
);
|
||||
googleSignOut();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -31,9 +31,5 @@ void googleSignUp(Function(String, String, String) callback) async {
|
|||
}
|
||||
|
||||
Future<GoogleSignInAccount> googleSignOut() async {
|
||||
if (!await _googleSignIn.isSignedIn()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return await _googleSignIn.signOut();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue