Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
- Handle case where there's only one visit when creating chunks (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardiesoft committed Jul 21, 2021
1 parent 997690b commit 68bdf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VisitsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default {
if (
(newVisits.filter((v) => v.hasOwnProperty("device")).length === 1 && // Edge case with only 1 visit
this.loadedVisitsCount === 0 &&
items.length === 1) ||
items.length <= 1) ||
prevFromDate === null ||
startOfEvening(fromDate).getTime() !==
startOfEvening(prevFromDate).getTime()
Expand Down

0 comments on commit 68bdf97

Please sign in to comment.