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

This commit is contained in:
Sai Krishna 2023-07-10 08:58:38 -05:00 committed by GitHub
parent c69c9d6314
commit 6d19cc22a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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