fix(BOOK-469): Removed otherPaymentOptions on non mandatory GLA
Approved-by: Bianca Widstam
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -57,7 +57,6 @@ export default function ConfirmBooking({
|
||||
<Guarantee
|
||||
mustBeGuaranteed={bookingMustBeGuaranteed}
|
||||
savedCreditCards={savedCreditCards}
|
||||
otherPaymentOptions={otherPaymentOptions}
|
||||
/>
|
||||
<Divider color="Border/Divider/Subtle" />
|
||||
<TermsAndConditions isFlexBookingTerms />
|
||||
|
||||
Reference in New Issue
Block a user