Skip to content

Commit

Permalink
fix: correctly calculate duration of 1 hour in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
BelKed committed May 9, 2024
1 parent d3a22c2 commit 7d12afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UncategorizedNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
isVisible() {
// TODO: make configurable?
// if total duration is less than 1 hour, don't show it
const overTotal = this.total > 60 * 60 * 1000;
const overTotal = this.total > 60 * 60;
// if ratio is > 0.3, show it
const overRatio = this.ratio > 0.3;
// if there's a category filter (url has category query param), don't show it
Expand Down

1 comment on commit 7d12afd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.