Skip to content

Commit

Permalink
fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavChuiko committed Oct 24, 2024
1 parent 5faab5d commit 6e10521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/my-offers/MyOffers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const MyOffers = () => {
const handleOpenDrawer = () => openDrawer()

useEffect(() => {
if (!activeTab) setSearchParams({ tab: Object.keys(tabsInfo)[0] })
if (!activeTab) {
setSearchParams({ tab: Object.keys(tabsInfo)[0] })
}
}, [activeTab, setSearchParams])

const itemsPerPage = getScreenBasedLimit(breakpoints, itemsLoadLimit)
Expand Down

0 comments on commit 6e10521

Please sign in to comment.