Skip to content

Commit

Permalink
add if no cards
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Oct 5, 2024
1 parent 7f1a7ff commit d1d62fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/organisms/Draft/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export const DraftBoard = (props: {
position="relative"
bg="gray.500"
>
{(!cardView || cardView?.length === 0) && (
<p>No packs... yet! Click "Crack a Pack!"</p>
)}
{cardView?.map((card, index) => (
<DraftCard key={"draftcard" + card?.name + index} {...card} />
))}
Expand Down

0 comments on commit d1d62fe

Please sign in to comment.