2
0
Эх сурвалжийг харах

always send account id notification in cloudformation form (#3495)

Feroze Mohideen 2 жил өмнө
parent
commit
1a2f960339

+ 1 - 5
dashboard/src/components/CloudFormationForm.tsx

@@ -61,7 +61,6 @@ const CloudFormationForm: React.FC<Props> = ({
   proceed,
   switchToCredentialFlow
 }) => {
-  const [hasSentAWSNotif, setHasSentAWSNotif] = useState(false);
   const [AWSAccountID, setAWSAccountID] = useState("");
   const [currentStep, setCurrentStep] = useState<number>(0);
   const [hasClickedCloudformationButton, setHasClickedCloudformationButton] = useState(false);
@@ -152,10 +151,7 @@ const CloudFormationForm: React.FC<Props> = ({
 
   const handleContinueWithAWSAccountId = () => {
     setCurrentStep(2);
-    if (!hasSentAWSNotif) {
-      setHasSentAWSNotif(true);
-      markStepStarted({ step: "aws-account-id-complete", account_id: AWSAccountID });
-    }
+    markStepStarted({ step: "aws-account-id-complete", account_id: AWSAccountID });
   }
 
   const handleProceedToProvisionStep = () => {