Skip to content

Commit

Permalink
Update userSettings.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Benedikt Kulmann <[email protected]>
  • Loading branch information
AlexAndBear and kulmann authored Mar 5, 2024
1 parent a68a572 commit b7d2d9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7d2d9b

Please sign in to comment.