Skip to content

Commit 54daa78

Browse files
committed
Using capacityStatus.recordedAt everywhere in order to be consistent
It means that we trust datetime raised by external apps (such as Floxx) but this is more legit if, for instance, there was some delay between the moment red coats raise the stats, and the moment it is properly persisted into firebase
1 parent 4de8c90 commit 54daa78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/src/components/rooms/RoomCapacityIndicator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const sinceLabelRef = computed(() => {
151151
return { shown: false } as const;
152152
}
153153
154-
const sinceMinutes = Math.max(Math.round(now.toInstant().since(capacityStatus.persistedAt).total('minutes')), 0)
154+
const sinceMinutes = Math.max(Math.round(now.toInstant().since(capacityStatus.recordedAt).total('minutes')), 0)
155155
156156
return {
157157
shown: true,

0 commit comments

Comments
 (0)