From 920fd004b921ee7c7da490983b559218949bc945 Mon Sep 17 00:00:00 2001 From: "Jason C.H" Date: Sat, 23 Mar 2024 23:14:38 +0800 Subject: [PATCH] Fix platfrom --- lib/business/init/login_page.dart | 2 +- lib/business/profile/me.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/business/init/login_page.dart b/lib/business/init/login_page.dart index fb2650e..6a6f0bd 100644 --- a/lib/business/init/login_page.dart +++ b/lib/business/init/login_page.dart @@ -178,7 +178,7 @@ class _LoginAreaState extends State<_LoginArea> { } Future 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}'); diff --git a/lib/business/profile/me.dart b/lib/business/profile/me.dart index 413da8d..2cef4d3 100644 --- a/lib/business/profile/me.dart +++ b/lib/business/profile/me.dart @@ -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((_) {}); } },