From 495e827f3294307ffb8dbc3d90bce03d1bf7e815 Mon Sep 17 00:00:00 2001 From: jordanarldt Date: Wed, 25 Feb 2026 16:13:34 -0600 Subject: [PATCH] fix(core) - Update gift certificate amount change handler to include amount_display The form change handler only checked for inputs named 'amount', but the select element for predefined gift certificate amounts uses the name 'amount_display'. This caused the GiftCertificateCard preview to not update when selecting a new amount from the dropdown. --- .changeset/kind-gifts-update.md | 5 +++++ .../sections/gift-certificate-purchase-section/index.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/kind-gifts-update.md diff --git a/.changeset/kind-gifts-update.md b/.changeset/kind-gifts-update.md new file mode 100644 index 0000000000..de04c862d9 --- /dev/null +++ b/.changeset/kind-gifts-update.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Fix GiftCertificateCard not updating when selecting a new amount on the gift certificate purchase form diff --git a/core/vibes/soul/sections/gift-certificate-purchase-section/index.tsx b/core/vibes/soul/sections/gift-certificate-purchase-section/index.tsx index 8617d55834..728c4e4e09 100644 --- a/core/vibes/soul/sections/gift-certificate-purchase-section/index.tsx +++ b/core/vibes/soul/sections/gift-certificate-purchase-section/index.tsx @@ -93,7 +93,7 @@ export function GiftCertificatePurchaseSection({ return; } - if (e.target.name !== 'amount') { + if (e.target.name !== 'amount' && e.target.name !== 'amount_display') { return; }