Merged in chore/update-eslint-configs (pull request #2812)
chore: Extend eslint configs from @typescript-eslint/recommended * Change to typescript recommended in scandic-web * Remove comment * Change to recommended ts config in partner-sas * Change to recommended ts lint config in booking-flow Approved-by: Linus Flood
This commit is contained in:
@@ -204,6 +204,7 @@ export default function AddAncillaryFlowModal({
|
||||
)
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function handleGuaranteePayment(data: AncillaryFormData, packages: any) {
|
||||
const savedCreditCard = savedCreditCards?.find(
|
||||
(card) => card.id === data.paymentMethod
|
||||
|
||||
@@ -7,4 +7,4 @@ export const paymentSchema = z.object({
|
||||
}),
|
||||
})
|
||||
|
||||
export interface GuaranteeFormData extends z.output<typeof paymentSchema> {}
|
||||
export type GuaranteeFormData = z.output<typeof paymentSchema>
|
||||
|
||||
@@ -95,6 +95,7 @@ export default function TrackGuarantee({
|
||||
break
|
||||
|
||||
case PaymentCallbackStatusEnum.Cancel:
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeCancelAncillary",
|
||||
@@ -107,6 +108,7 @@ export default function TrackGuarantee({
|
||||
break
|
||||
|
||||
case PaymentCallbackStatusEnum.Error:
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeFailAncillary",
|
||||
|
||||
Reference in New Issue
Block a user