Skip to content

Commit

Permalink
change suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dmosites committed Aug 1, 2024
1 parent 50ae852 commit bf28ede
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/features/orders/ordersActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,8 @@ export const approve =
);

if (isAppError(tx)) {
const appError = tx;
dispatch(setErrors([appError]));

if (appError.error && "message" in appError.error) {
dispatch(declineTransaction(appError.error.message));
}

dispatch(setStatus("failed"));

handleOrderError(dispatch, tx);
return;
}

Expand Down

0 comments on commit bf28ede

Please sign in to comment.