Skip to content

Commit

Permalink
fix: create/edit ad not routing back to my ads
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed Jun 11, 2024
1 parent 5c2ddef commit 0ef2066
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ const CreateEditAd = () => {
limit: createResponse?.max_order_amount_limit_display,
visibilityStatus: createResponse?.visibility_status[0],
});
} else {
history.push(MY_ADS_URL);
}
} else if (isError || isUpdateError) {
showModal('AdCreateEditErrorModal');
Expand Down

0 comments on commit 0ef2066

Please sign in to comment.