Skip to content

Commit

Permalink
fix(payment): react error after payment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 8, 2023
1 parent 34fe708 commit 58b877f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCheckAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const useCheckAccess = () => {
const location = useLocation();
const [errorMessage, setErrorMessage] = useState<string | null>(null);
const { t } = useTranslation('user');
const { clientOffers } = useClientIntegration();

const intervalCheckAccess = useCallback(
({ interval = 3000, iterations = 5, offerId }: intervalCheckAccessPayload) => {
const { clientOffers } = useClientIntegration();
if (!offerId && clientOffers?.[0]) {
offerId = clientOffers[0];
}
Expand Down

0 comments on commit 58b877f

Please sign in to comment.