diff --git a/src/stores/admin/club/protocol/protocolPresence.ts b/src/stores/admin/club/protocol/protocolPresence.ts index b2f6c9c..a6859c1 100644 --- a/src/stores/admin/club/protocol/protocolPresence.ts +++ b/src/stores/admin/club/protocol/protocolPresence.ts @@ -22,8 +22,12 @@ export const useProtocolPresenceStore = defineStore("protocolPresence", { getters: { detectedChangeProtocolPresence: (state) => !isEqual( - state.origin, //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId), - state.presence //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId) + state.origin.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => + a.memberId.localeCompare(b.memberId) + ), + state.presence.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => + a.memberId.localeCompare(b.memberId) + ) ) && state.syncingProtocolPresence != "syncing", }, actions: { diff --git a/src/views/admin/club/protocol/ProtocolPresence.vue b/src/views/admin/club/protocol/ProtocolPresence.vue index c392338..2dc1577 100644 --- a/src/views/admin/club/protocol/ProtocolPresence.vue +++ b/src/views/admin/club/protocol/ProtocolPresence.vue @@ -22,7 +22,7 @@
Anwesenheit