Skip to content

Commit

Permalink
chore: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakoko committed Sep 14, 2023
1 parent 9a7a503 commit c53221b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OwnerType } from "@artsy/cohesion"
import { ContextModule, OwnerType } from "@artsy/cohesion"
import { BrowseSimilarWorks_artwork$data } from "__generated__/BrowseSimilarWorks_artwork.graphql"
import {
CreateArtworkAlertModal_artwork$data,
Expand Down
6 changes: 3 additions & 3 deletions src/app/Scenes/Artwork/ArtworkAuctionCreateAlertHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const ArtworkAuctionCreateAlertHeader: FC<ArtworkAuctionCreateAlertHeader
const formattedArtistNames = artistNames ? artistNames + ", " : ""
const hasArtists = artistNames?.length ?? 0 > 0

const shouldShowBrowseMoreButton =
artworkData.savedSearch?.suggestedArtworksConnection?.totalCount ?? 0
const hasArtworksSuggestions =
(artworkData.savedSearch?.suggestedArtworksConnection?.totalCount ?? 0) > 0

const isLotClosedOrBiddingEnded =
hasBiddingEnded(sale, saleArtwork) || isLotClosed(sale, saleArtwork)
Expand Down Expand Up @@ -95,7 +95,7 @@ export const ArtworkAuctionCreateAlertHeader: FC<ArtworkAuctionCreateAlertHeader
</Button>
)}

{shouldShowBrowseMoreButton > 0 && (
{!!hasArtworksSuggestions && (
<Button
size="large"
variant="outline"
Expand Down

0 comments on commit c53221b

Please sign in to comment.