Merged in feat/sw-3642-inject-sas-eb-payment (pull request #3243)
feat(SW-3642): Enable SAS EB payments * Wip add SAS eb payment * Add validate payment call * Check booking status payment method to determine validation * Clean up getPaymentData * Fix PartnerPoints casing * Add comment for validatePartnerPayment error handling * Remove comment Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -79,7 +79,7 @@ export default function RewardNight() {
|
||||
}
|
||||
}, [resetOnMultiroomError, ref])
|
||||
|
||||
if (!config.redemptionEnabled) return null
|
||||
if (config.redemptionType === "disabled") return null
|
||||
|
||||
return (
|
||||
<div ref={ref} onBlur={(e) => closeOnBlur(e.nativeEvent)}>
|
||||
|
||||
@@ -41,7 +41,7 @@ export default function FormContent({
|
||||
const {
|
||||
formState: { errors, isDirty },
|
||||
} = useFormContext<BookingWidgetSchema>()
|
||||
const { bookingCodeEnabled, redemptionEnabled } = useBookingFlowConfig()
|
||||
const { bookingCodeEnabled, redemptionType } = useBookingFlowConfig()
|
||||
const searchParams = useSearchParams()
|
||||
const focusWidget = searchParams.get(FOCUS_WIDGET) === "true"
|
||||
useEffect(() => {
|
||||
@@ -126,7 +126,7 @@ export default function FormContent({
|
||||
)}
|
||||
style={{
|
||||
// TODO: Remove this when redemption is enabled for partner-sas
|
||||
display: redemptionEnabled ? undefined : "none",
|
||||
display: redemptionType !== "disabled" ? undefined : "none",
|
||||
}}
|
||||
>
|
||||
<Voucher />
|
||||
|
||||
Reference in New Issue
Block a user