{#if imageDataUrl}
diff --git a/src/components/modals/ModalChangePwd.svelte b/src/components/modals/ModalChangePwd.svelte
index 39d2371..102574e 100644
--- a/src/components/modals/ModalChangePwd.svelte
+++ b/src/components/modals/ModalChangePwd.svelte
@@ -127,7 +127,7 @@
disabled={!areAllInputsCorrect}
on:click={callHandleSubmit}
class="btn variant-filled-primary ml-2"
- type="submit">{$t('register.button.register')}{$t('modalChangePassword.changeButton')}
diff --git a/src/components/modals/ModalChat.svelte b/src/components/modals/ModalChat.svelte
index 63e2809..1a335c2 100644
--- a/src/components/modals/ModalChat.svelte
+++ b/src/components/modals/ModalChat.svelte
@@ -4,7 +4,7 @@
import { t } from '../../i18n';
import Icon from '@iconify/svelte';
import type { ChatMessage, ChatMessages, ChatStructure } from '$lib/types/Chat';
- import { chatIdNewChat, globalUsername, serverURL, token } from '$lib/Store';
+ import { chatIdNewChat, chats, globalUsername, serverURL, token } from '$lib/Store';
import { get } from 'svelte/store';
import { onDestroy, onMount } from 'svelte';
import { getChats, getMessages } from '$lib/utils/Chat';
@@ -50,6 +50,7 @@
onMount(async () => {
dataChats = await getChats();
+ chats.set(dataChats);
copieChats = Object.assign({}, dataChats);
if ($chatIdNewChat) {
openChat($chatIdNewChat);
@@ -153,7 +154,7 @@
on:input={handleChatSearch}
/>
-