From 283cf9025558090815f01e7f71550525a6d24ff3 Mon Sep 17 00:00:00 2001 From: Samil Abud Date: Thu, 26 Oct 2023 18:56:47 -0400 Subject: [PATCH 001/684] Fixed getting two magic codes upon signing in once --- src/pages/signin/ChooseSSOOrMagicCode.js | 29 +++++------------------- src/pages/signin/SignInPage.js | 6 ++++- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/src/pages/signin/ChooseSSOOrMagicCode.js b/src/pages/signin/ChooseSSOOrMagicCode.js index db985e525545..da1a299fa14d 100644 --- a/src/pages/signin/ChooseSSOOrMagicCode.js +++ b/src/pages/signin/ChooseSSOOrMagicCode.js @@ -16,18 +16,11 @@ import * as Session from '@userActions/Session'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; -import ChangeExpensifyLoginLink from './ChangeExpensifyLoginLink'; -import Terms from './Terms'; +import ValidateCodeForm from './ValidateCodeForm'; const propTypes = { /* Onyx Props */ - /** The credentials of the logged in person */ - credentials: PropTypes.shape({ - /** The email/phone the user logged in with */ - login: PropTypes.string, - }), - /** The details about the account that the user is signing in with */ account: PropTypes.shape({ /** Whether or not a sign on form is loading (being submitted) */ @@ -48,11 +41,10 @@ const propTypes = { }; const defaultProps = { - credentials: {}, account: {}, }; -function ChooseSSOOrMagicCode({credentials, account, setIsUsingMagicCode}) { +function ChooseSSOOrMagicCode({account, setIsUsingMagicCode}) { const styles = useThemeStyles(); const {translate} = useLocalize(); const {isOffline} = useNetwork(); @@ -79,21 +71,12 @@ function ChooseSSOOrMagicCode({credentials, account, setIsUsingMagicCode}) { -