Skip to content

Commit

Permalink
Fix platfrom
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrysbita committed Mar 23, 2024
1 parent 36983bb commit 920fd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/business/init/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class _LoginAreaState extends State<_LoginArea> {
}

Future<void> tryLoginFirebase() async {
if (!isMobile && !isWeb && !isMacOS) return;
if (!isMobileApp && !isWeb && !isMacOSApp) return;
try {
final u = await FirebaseAuth.instance.signInWithCustomToken(_customToken);
log.i('Login Firebase: ${u.user?.uid} ${u.user?.displayName}');
Expand Down
2 changes: 1 addition & 1 deletion lib/business/profile/me.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MePage extends StatelessWidget {
title: Text(LocaleKeys.SignOut.tr()),
onTap: () {
store.dispatch(LogoutAction());
if (isMobile || isWeb || isMacOS) {
if (isMobileApp || isWeb || isMacOSApp) {
FirebaseAuth.instance.signOut().catchError((_) {});
}
},
Expand Down

0 comments on commit 920fd00

Please sign in to comment.