Skip to content

Commit

Permalink
🐛 Don't render archetype label if not reviewed (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Nov 22, 2023
1 parent 9cd242b commit a71d419
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import React from "react";
export const ReviewedArchetypeItem = ({ id }: { id: number }) => {
const { archetype } = useFetchArchetypeById(id);

if (!archetype) return null;
if (!archetype?.review) return null;

return (
<Label color="grey" key={id}>
{archetype.name}
{archetype.review ? " (Reviewed)" : " (Not Reviewed)"}
</Label>
);
};

0 comments on commit a71d419

Please sign in to comment.