Skip to content

Commit

Permalink
chore: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsivin committed May 10, 2024
1 parent f4c4010 commit 9a5d9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/dashboard/helper/ReconnectService.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class ReconnectService {

getSecondsSinceDisconnect() {
return this.disconnectTime
? differenceInSeconds(new Date(), this.disconnectTime)
? Math.max(differenceInSeconds(new Date(), this.disconnectTime), 0)
: 0;
}

Expand Down

0 comments on commit 9a5d9a4

Please sign in to comment.