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 committed Aug 15, 2023
1 parent d107e40 commit 0d4557c
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 0d4557c

Please sign in to comment.