From 07de346be8fb5b04b7e050d4246894ffd0726301 Mon Sep 17 00:00:00 2001 From: "Ng Wing Tat, David" Date: Fri, 4 Nov 2022 04:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Register]=20Fix=20sign=20out=20?= =?UTF-8?q?if=20quit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../registration-screen/registration-screen.tsx | 4 ---- app/screens/sign-in-screen/sign-in-screen.tsx | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/screens/registration-screen/registration-screen.tsx b/app/screens/registration-screen/registration-screen.tsx index 371d707f..5932d660 100644 --- a/app/screens/registration-screen/registration-screen.tsx +++ b/app/screens/registration-screen/registration-screen.tsx @@ -117,10 +117,6 @@ export class RegistrationScreen extends React.Component { + if ((payload.lastState as any).routeName === "Register") { + // Sign out Authcore if users cancel Liker ID registration + this.props.userStore.authCore.signOut() + } + }) this.reveal() } @@ -77,6 +86,12 @@ export class SignInScreen extends React.Component