fix(BOOK-469): Removed otherPaymentOptions on non mandatory GLA

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2025-12-03 07:42:31 +00:00
parent b563a83f10
commit c976079df1
2 changed files with 2 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ import type { CreditCard } from "@scandic-hotels/trpc/types/user"
interface GuaranteeProps {
mustBeGuaranteed: boolean
savedCreditCards: CreditCard[] | null
otherPaymentOptions: PaymentMethodEnum[]
otherPaymentOptions?: PaymentMethodEnum[]
}
export function Guarantee({
@@ -92,7 +92,7 @@ export function Guarantee({
<ConfirmBookingPaymentOptions
savedCreditCards={savedCreditCards}
hasMixedRates={false}
otherPaymentOptions={otherPaymentOptions}
otherPaymentOptions={otherPaymentOptions ?? []}
/>
</>
) : null}

View File

@@ -57,7 +57,6 @@ export default function ConfirmBooking({
<Guarantee
mustBeGuaranteed={bookingMustBeGuaranteed}
savedCreditCards={savedCreditCards}
otherPaymentOptions={otherPaymentOptions}
/>
<Divider color="Border/Divider/Subtle" />
<TermsAndConditions isFlexBookingTerms />