From bf46cd920bceb35d0f26965cb909defd59d92c5a Mon Sep 17 00:00:00 2001 From: Andrii Vitiv Date: Sun, 15 Sep 2024 01:57:45 +0300 Subject: [PATCH] Optimistically set `account.validated` on validation --- src/libs/actions/User.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index d2513ce74454..1a2af62ba3aa 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -617,7 +617,10 @@ function validateSecondaryLogin(loginList: OnyxEntry, contactMethod: { onyxMethod: Onyx.METHOD.MERGE, key: ONYXKEYS.ACCOUNT, - value: {isLoading: false}, + value: { + isLoading: false, + validated: true, + }, }, { onyxMethod: Onyx.METHOD.MERGE,