diff --git a/packages/checkout/widgets-lib/src/widgets/sale/context/SaleContextProvider.tsx b/packages/checkout/widgets-lib/src/widgets/sale/context/SaleContextProvider.tsx index 7a2f462eff..bbe9146308 100644 --- a/packages/checkout/widgets-lib/src/widgets/sale/context/SaleContextProvider.tsx +++ b/packages/checkout/widgets-lib/src/widgets/sale/context/SaleContextProvider.tsx @@ -172,12 +172,10 @@ export function SaleContextProvider(props: { >(undefined); const [fundingRoutes, setFundingRoutes] = useState([]); - const [disabledPaymentTypes, setDisabledPaymentTypes] = useState< - SalePaymentTypes[] - >(excludePaymentTypes || []); + const [disabledPaymentTypes, setDisabledPaymentTypes] = useState([]); const disablePaymentTypes = (types: SalePaymentTypes[]) => { - setDisabledPaymentTypes((prev) => [...prev, ...types]); + setDisabledPaymentTypes((prev) => Array.from(new Set([...(prev || []), ...types]))); }; const [invalidParameters, setInvalidParameters] = useState(false);