Skip to content

Scheduling infrastructure for absolutely everyone.

fix: cancel button not working on payment page (#10006)

Sai Krishna6d19cc22a5f2
diff --git a/packages/features/ee/payments/components/Payment.tsx b/packages/features/ee/payments/components/Payment.tsx
index 1c98bfaaf66..3ec57cbadd6 100644
--- a/packages/features/ee/payments/components/Payment.tsx
+++ b/packages/features/ee/payments/components/Payment.tsx
@@ -115,7 +115,9 @@ const PaymentForm = (props: Props) => {
<Button
color="minimal"
disabled={!holdAcknowledged || ["processing", "error"].includes(state.status)}
- id="cancel">
+ id="cancel"
+ onClick={() => router.back()}
+ >
<span id="button-text">{t("cancel")}</span>
</Button>
<Button