From 0ef2066ca2ea14e277664594cc3f877b81fb5cfb Mon Sep 17 00:00:00 2001 From: ameerul-deriv Date: Tue, 11 Jun 2024 16:44:09 +0800 Subject: [PATCH] fix: create/edit ad not routing back to my ads --- src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx b/src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx index a9efab3c..415eb53f 100644 --- a/src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx +++ b/src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx @@ -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');