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