fix: Allow user to remove team logo (#7095)

This commit is contained in:
Hemachandar
2024-06-20 05:41:54 +05:30
committed by GitHub
parent a825925a31
commit 2333602f25
3 changed files with 30 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ function Details() {
[]
);
const handleAvatarChange = async (avatarUrl: string) => {
const handleAvatarChange = async (avatarUrl: string | null) => {
await team.save({ avatarUrl });
toast.success(t("Logo updated"));
};