Skip to content

Commit

Permalink
fix first item select on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Sep 21, 2023
1 parent e382487 commit c633ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/app/components/marketplace/MarketplaceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ const MarketplaceTable = ({
return sortedItems;
}, [marketLatestItems, sortField, sortDirection]);

console.log(showEquipQ);

return (
<>
<div>
Expand Down Expand Up @@ -149,7 +151,7 @@ const MarketplaceTable = ({
</tbody>
</table>
</div>
{showEquipQ && (
{showEquipQ! >= 0 && (
<div className="sm:hidden h-full">
{(() => {
const item = sortedMarketLatestItems[showEquipQ ?? 0];
Expand Down

1 comment on commit c633ed2

@vercel
Copy link

@vercel vercel bot commented on c633ed2 Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.