diff --git a/packages/scandipwa/src/component/CartCoupon/CartCoupon.container.tsx b/packages/scandipwa/src/component/CartCoupon/CartCoupon.container.tsx index 5ec487fdf4..facb2742ed 100644 --- a/packages/scandipwa/src/component/CartCoupon/CartCoupon.container.tsx +++ b/packages/scandipwa/src/component/CartCoupon/CartCoupon.container.tsx @@ -80,14 +80,13 @@ export class CartCouponContainer extends PureComponent { - onCouponCodeUpdate(); this.setState({ isIncorrectCoupon: !success }); } ).finally( diff --git a/packages/scandipwa/src/component/CartCoupon/CartCoupon.type.ts b/packages/scandipwa/src/component/CartCoupon/CartCoupon.type.ts index 66c9606fbd..a29b47a33f 100644 --- a/packages/scandipwa/src/component/CartCoupon/CartCoupon.type.ts +++ b/packages/scandipwa/src/component/CartCoupon/CartCoupon.type.ts @@ -29,7 +29,6 @@ export interface CartCouponContainerBaseProps { couponCode: string; mix: Mix; title: string; - onCouponCodeUpdate: () => void; } export type CartCouponContainerProps = CartCouponContainerMapStateProps diff --git a/packages/scandipwa/src/util/Request/Request.ts b/packages/scandipwa/src/util/Request/Request.ts index 52e5b3b5d2..4b4f548785 100644 --- a/packages/scandipwa/src/util/Request/Request.ts +++ b/packages/scandipwa/src/util/Request/Request.ts @@ -276,7 +276,7 @@ export const executePost = async (queryObject: QueryObject): Promise => { } catch (err) { handleConnectionError(err, 'executePost failed'); - throw new Error(err as string); + throw err; } };