From e3d75180d7a16108147481afb91c18a342484f60 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 30 Apr 2024 17:42:11 +0300 Subject: [PATCH] UI tweak --- pages/cart/publishers/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/cart/publishers/index.tsx b/pages/cart/publishers/index.tsx index 37ae3ee..74eb564 100644 --- a/pages/cart/publishers/index.tsx +++ b/pages/cart/publishers/index.tsx @@ -109,20 +109,20 @@ function PublishersPage({ publishers = [] }: IProps) { if (shownPubs.length === 0) { return (
- { - setFilter(""); - handleFilterChange({ target: { value: "" } }); + setFilter(""); // Assuming setFilter directly updates the filter state + if (typeof handleFilterChange === 'function') { + handleFilterChange({ target: { value: "" } }); // If needed for additional logic + } }} > Clear filters - +
); - } - else { + } else { return shownPubs.map((publisher) => ( ));