Skip to content

Commit

Permalink
fix(HMS-2261): show warning when polling reservation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfefer authored and ezr-ondrej committed Aug 22, 2023
1 parent 7d4c715 commit 681bf28
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 681bf28

Please sign in to comment.