From 681bf2843f3e77604921045753f252a2cccb4468 Mon Sep 17 00:00:00 2001 From: Amir Fefer Date: Thu, 3 Aug 2023 18:24:12 +0300 Subject: [PATCH] fix(HMS-2261): show warning when polling reservation fails --- .../ProvisioningWizard/steps/ReservationProgress/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Components/ProvisioningWizard/steps/ReservationProgress/index.js b/src/Components/ProvisioningWizard/steps/ReservationProgress/index.js index fe465884..65ea254d 100644 --- a/src/Components/ProvisioningWizard/steps/ReservationProgress/index.js +++ b/src/Components/ProvisioningWizard/steps/ReservationProgress/index.js @@ -105,6 +105,12 @@ const ReservationProgress = ({ setLaunchSuccess }) => { !data?.success && nextInterval(); data.success && setLaunchSuccess(); }, + onError: () => { + setCurrentWarning( + `The reservation was created but we can't get the launch progress status. + Check your ${humanizeProvider(provider)} console later. If this issue persists, please contact support.` + ); + }, refetchIntervalInBackground: true, });