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
This commit is contained in:
@@ -41,7 +41,7 @@ export default function FormContent({
|
||||
const {
|
||||
formState: { errors, isDirty },
|
||||
} = useFormContext<BookingWidgetSchema>()
|
||||
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",
|
||||
}}
|
||||
>
|
||||
<Voucher />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user