From bd21b92dbe6092d957ecac0b29c79792adfb72a7 Mon Sep 17 00:00:00 2001 From: Anton Gunnarsson Date: Tue, 25 Nov 2025 10:47:07 +0000 Subject: [PATCH] Merged in fix/sw-3622-tablet-voucher-container-empty (pull request #3197) fix(SW-3622): Hide UI glitch while redemption is disabled for partner-sas * Hide UI glitch while redemption is disabled for partner-sas Approved-by: Matilda Haneling --- .../BookingWidget/BookingWidgetForm/FormContent/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/index.tsx b/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/index.tsx index 961545337..3cb223de1 100644 --- a/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/index.tsx +++ b/packages/booking-flow/lib/components/BookingWidget/BookingWidgetForm/FormContent/index.tsx @@ -41,7 +41,7 @@ export default function FormContent({ const { formState: { errors, isDirty }, } = useFormContext() - const { bookingCodeEnabled } = useBookingFlowConfig() + const { bookingCodeEnabled, redemptionEnabled } = useBookingFlowConfig() const lang = useLang() const pathName = usePathname() @@ -114,6 +114,10 @@ export default function FormContent({ styles.voucherRow, bookingCodeEnabled ? null : styles.bookingCodeDisabled )} + style={{ + // TODO: Remove this when redemption is enabled for partner-sas + display: redemptionEnabled ? undefined : "none", + }} >