mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-08 06:41:45 -05:00
fix: remove or reupload avatar bug (#2502)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
This commit is contained in:
+3
@@ -52,6 +52,9 @@ export function EditAvatar({ session, environmentId }: { session: Session; envir
|
|||||||
toast.error("Avatar update failed. Please try again.");
|
toast.error("Avatar update failed. Please try again.");
|
||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
|
if (inputRef.current) {
|
||||||
|
inputRef.current.value = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export const getS3Client = () => {
|
|||||||
s3ClientInstance = new S3Client({
|
s3ClientInstance = new S3Client({
|
||||||
credentials,
|
credentials,
|
||||||
region: S3_REGION,
|
region: S3_REGION,
|
||||||
endpoint: S3_ENDPOINT_URL,
|
...(S3_ENDPOINT_URL && { endpoint: S3_ENDPOINT_URL }),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user