Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
receiveError handles cart
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jan 17, 2023
1 parent 9dd35c3 commit 887b3fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions assets/js/data/cart/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,6 @@ export const applyCoupon =
dispatch.receiveCart( response );
} catch ( error ) {
dispatch.receiveError( error );

// If updated cart state was returned, also update that.
if ( error.data?.cart ) {
dispatch.receiveCart( error.data.cart );
}
}

return true;
Expand Down

0 comments on commit 887b3fe

Please sign in to comment.