Update typescript
This commit is contained in:
@@ -7,7 +7,9 @@ import { PaymentMethodEnum } from "@/constants/booking"
|
||||
export function useAvailablePaymentOptions(
|
||||
otherPaymentOptions: PaymentMethodEnum[]
|
||||
) {
|
||||
const [availablePaymentOptions, setAvailablePaymentOptions] = useState(
|
||||
const [availablePaymentOptions, setAvailablePaymentOptions] = useState<
|
||||
PaymentMethodEnum[]
|
||||
>(
|
||||
otherPaymentOptions.filter(
|
||||
(option) => option !== PaymentMethodEnum.applePay
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user