From b7d2d9b8aa6034f0076d9370b750fc9263972915 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 5 Mar 2024 14:39:04 +0100 Subject: [PATCH] Update userSettings.ts Co-authored-by: Benedikt Kulmann --- .../src/composables/stores/userSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-app-admin-settings/src/composables/stores/userSettings.ts b/packages/web-app-admin-settings/src/composables/stores/userSettings.ts index 6a88b658c97..6f420243254 100644 --- a/packages/web-app-admin-settings/src/composables/stores/userSettings.ts +++ b/packages/web-app-admin-settings/src/composables/stores/userSettings.ts @@ -11,7 +11,7 @@ export const useUserSettingsStore = defineStore('userSettings', () => { } const upsertUser = (user: User) => { - const existing = unref(users).find(({ id }) => id === user.id) + const existing = unref(users).some(({ id }) => id === user.id) if (existing) { Object.assign(existing, user) return