From 1d785e61c6a235ecf5be06e06311129fd6bdfa21 Mon Sep 17 00:00:00 2001 From: xyt <72695575+xyt-dev@users.noreply.github.com> Date: Fri, 5 Apr 2024 20:10:13 +0800 Subject: [PATCH] feat: Google One Tap should be hidden after logged in (#2853) * fix: Google One Tap should be hidden after logged in * Change the call location for google.accounts.id.cancel() --- web/src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/App.js b/web/src/App.js index cbc91219..6f80beba 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -374,6 +374,7 @@ class App extends Component { }); }} onLoginSuccess={(redirectUrl) => { + window.google?.accounts?.id?.cancel(); if (redirectUrl) { localStorage.setItem("mfaRedirectUrl", redirectUrl); }