From bb692c1a8ebcc9f4ee87a27024ff81a27abd1f6c Mon Sep 17 00:00:00 2001 From: Paul Paffe Date: Thu, 6 Jul 2023 15:24:30 -0400 Subject: [PATCH] remove unnecessary store --- .../shared-components/profile-image-cropper.svelte | 2 -- .../components/shared-components/user-avatar.svelte | 10 +--------- web/src/lib/stores/preferences.store.ts | 2 -- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/web/src/lib/components/shared-components/profile-image-cropper.svelte b/web/src/lib/components/shared-components/profile-image-cropper.svelte index 03ef93b0ae..9a6affa695 100644 --- a/web/src/lib/components/shared-components/profile-image-cropper.svelte +++ b/web/src/lib/components/shared-components/profile-image-cropper.svelte @@ -9,7 +9,6 @@ export let publicSharedKey = ''; import domtoimage from 'dom-to-image'; import { notificationController, NotificationType } from './notification/notification'; - import { lastUpdatedProfilePicture } from '$lib/stores/preferences.store'; let profilePicture: HTMLDivElement; @@ -19,7 +18,6 @@ const file: File = new File([blob], 'profile-picture.png', { type: 'image/png' }); try { await api.userApi.createProfileImage({ file }); - lastUpdatedProfilePicture.set(Date.now()); dispatch('close'); notificationController.show({ type: NotificationType.Info, diff --git a/web/src/lib/components/shared-components/user-avatar.svelte b/web/src/lib/components/shared-components/user-avatar.svelte index 2f9e669676..a9ab500a96 100644 --- a/web/src/lib/components/shared-components/user-avatar.svelte +++ b/web/src/lib/components/shared-components/user-avatar.svelte @@ -6,7 +6,6 @@