Only show remove button when there is an avatar to remove

This commit is contained in:
Robert Long 2022-03-02 19:18:23 -08:00
commit 2b3c04592b

View file

@ -65,6 +65,7 @@ export const AvatarInputField = forwardRef(
<EditIcon />
</label>
</div>
{(avatarUrl || objUrl) && !removed && (
<Button
className={styles.removeButton}
variant="icon"
@ -72,6 +73,7 @@ export const AvatarInputField = forwardRef(
>
Remove
</Button>
)}
</div>
);
}