Skip to content

Commit

Permalink
🐛 fix: hide officer rank's image if disabled (closes #688)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Apr 27, 2022
1 parent 2261940 commit 6ec5f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/components/leo/OfficerRank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function OfficerRank({ unit }: { unit: Officer | EmsFdDeputy }) {

return (
<span className="flex flex-row gap-2 pr-4">
<img src={imgUrl} width={25} height={25} className="object-cover" />
{imgUrl ? <img src={imgUrl} width={25} height={25} className="object-cover" /> : null}
{rank}
</span>
);
Expand Down

0 comments on commit 6ec5f02

Please sign in to comment.