Skip to content

Commit

Permalink
fixed flickering of you have no ads in my ads (binary-com#6882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv authored and adrienne-deriv committed Nov 17, 2022
1 parent 6590d1f commit 2d2248e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/p2p/src/stores/my-ads-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export default class MyAdsStore extends BaseStore {
}

onClickUpdatePaymentMethods(id, is_buy_advert) {
this.setIsTableLoading(true);
requestWS({
p2p_advert_update: 1,
id,
Expand All @@ -425,14 +426,14 @@ export default class MyAdsStore extends BaseStore {
: {}),
}).then(response => {
if (!response.error) {
this.setAdverts([]);
this.loadMoreAds({ startIndex: 0 });
this.hideQuickAddModal();
} else {
this.setUpdatePaymentMethodsErrorMessage(response.error.message);
this.setIsQuickAddModalOpen(false);
this.setIsQuickAddErrorModalOpen(true);
}
this.setIsTableLoading(false);
});
}

Expand Down

0 comments on commit 2d2248e

Please sign in to comment.