Only show remove button when there is an avatar to remove
This commit is contained in:
@@ -65,6 +65,7 @@ export const AvatarInputField = forwardRef(
|
|||||||
<EditIcon />
|
<EditIcon />
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
{(avatarUrl || objUrl) && !removed && (
|
||||||
<Button
|
<Button
|
||||||
className={styles.removeButton}
|
className={styles.removeButton}
|
||||||
variant="icon"
|
variant="icon"
|
||||||
@@ -72,6 +73,7 @@ export const AvatarInputField = forwardRef(
|
|||||||
>
|
>
|
||||||
Remove
|
Remove
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user