diff --git a/public/locales/en/donation-flow.json b/public/locales/en/donation-flow.json index b22973a45..1d888caf6 100644 --- a/public/locales/en/donation-flow.json +++ b/public/locales/en/donation-flow.json @@ -106,7 +106,7 @@ }, "noregister": { "label": "Continue without registration", - "description": "You will not be able to get a donation certificate or a list of your donations. If you still want to receive a receipt, please share your email - it will not be visible in the platform" + "description": "You will not be able to get a donation certificate or a list of your donations. If you still want to receive a receipt, please share your email - it will not be visible in the platform." }, "field": { "password": "Password", @@ -128,7 +128,7 @@ "donation": "Donation", "transaction": { "title": "Transaction", - "description": "The transaction is only to compensate the transfer and is calculated based on your method of payment. \"Podkrepi.bg\" works with 0% commission" + "description": "The transaction is only to compensate the transfer and is calculated based on your method of payment. \"Podkrepi.bg\" works with 0% commission." }, "total": "Total", "field": { diff --git a/src/components/client/donation-flow/DonationFlowForm.tsx b/src/components/client/donation-flow/DonationFlowForm.tsx index de6b63a4a..b4a14ee90 100644 --- a/src/components/client/donation-flow/DonationFlowForm.tsx +++ b/src/components/client/donation-flow/DonationFlowForm.tsx @@ -226,15 +226,15 @@ export function DonationFlowForm() { { - cancelSetupIntentMutation.mutate({ id: setupIntent.id }) - router.push(routes.campaigns.viewCampaignBySlug(campaign.slug)) + setShowCancelDialog(false) }} title={t('cancel-dialog.title')} content={t('cancel-dialog.content')} confirmButtonLabel={t('cancel-dialog.btn-continue')} cancelButtonLabel={t('cancel-dialog.btn-cancel')} handleConfirm={() => { - setShowCancelDialog(false) + cancelSetupIntentMutation.mutate({ id: setupIntent.id }) + router.push(routes.campaigns.viewCampaignBySlug(campaign.slug)) }} />