From 063957f52a5d6e5b9eeb4200915de907fda6f41e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=8E=E4=BA=AE=E7=9A=84?= Date: Fri, 6 Dec 2024 09:51:40 +0700 Subject: [PATCH] Update src/libs/actions/Delegate.ts Co-authored-by: Fedi Rajhi --- src/libs/actions/Delegate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/actions/Delegate.ts b/src/libs/actions/Delegate.ts index f7ba61a1e842..40413df92772 100644 --- a/src/libs/actions/Delegate.ts +++ b/src/libs/actions/Delegate.ts @@ -337,8 +337,7 @@ function addDelegate(email: string, role: DelegateRole, validateCode: string) { validateCodeSent: null, }, }; - successData.push(optimisticResetActionCode); - failureData.push(optimisticResetActionCode); + optimisticData.push(optimisticResetActionCode); const parameters: AddDelegateParams = {delegate: email, validateCode, role};