Skip to content

Commit f0380a9

Browse files
authored
fix no show seats (#181)
* fix no show seats when 'last_activity_at' property not present in the api response. See https://github.blog/changelog/2025-01-17-updating-retention-period-for-last_activity_at-values-on-the-user-management-api-public-preview-to-90-days/
1 parent c515e55 commit f0380a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/SeatsAnalysisViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ setup(props) {
136136
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
137137
138138
props.seats.forEach(seat => {
139-
if (seat.last_activity_at === null) {
139+
if(!Boolean(seat.last_activity_at)) {
140140
noshowCount++;
141141
} else {
142142
const lastActivityDate = new Date(seat.last_activity_at);

0 commit comments

Comments
 (0)