diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index ce2c0b30f..406056e38 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -21,10 +21,10 @@ let profileImageInputElement: HTMLInputElement; const submitHandler = async () => { - const isInitialsImage: boolean = - profileImageUrl === generateInitialsImage($user.name) || profileImageUrl === ''; - if (isInitialsImage && name !== $user.name) { - profileImageUrl = generateInitialsImage(name); + if (name !== $user.name) { + if (profileImageUrl === generateInitialsImage($user.name) || profileImageUrl === '') { + profileImageUrl = generateInitialsImage(name); + } } const updatedUser = await updateUserProfile(localStorage.token, name, profileImageUrl).catch( @@ -110,11 +110,11 @@ }} /> -
{$i18n.t('Profile')}
- -
+ + +
+
+
+ +
+
+ +
+
{$i18n.t('Profile Image')}
+ +
+ + + + +
+
+
+
{$i18n.t('Name')}
+ +
+ +
+
+

diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index e97df0c8c..f1e301b87 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -150,7 +150,7 @@ "Failed to read clipboard contents": "", "File Mode": "", "File not found.": "", - "Fingerprint spoofing detected: default profile picture set. Disable to access Initial avatar!": "", + "Fingerprint spoofing detected: Unable to use initials as avatar. Defaulting to default profile image.": "", "Focus chat input": "", "Format your variables using square brackets like this:": "", "From (Base Model)": "", @@ -362,4 +362,4 @@ "You": "", "You're a helpful assistant.": "", "You're now logged in.": "" -} +} \ No newline at end of file