Skip to content

Commit

Permalink
fix [Nitpick] Account Link Code timer truncates leading zeroes. OpenS…
Browse files Browse the repository at this point in the history
  • Loading branch information
krogenth committed Jul 2, 2024
1 parent b86b437 commit a6b3c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/dashboard/devices/DevicesRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
timerInterval = setInterval(() => {
const left = this.$swal.getTimerLeft();
const minutes = Math.floor(left / 1000 / 60);
b.textContent = `${minutes}:${Math.floor(left / 1000 - minutes * 60)}`;
b.textContent = `${minutes}:${String(Math.floor(left / 1000 - minutes * 60)).padStart(2, '0')}`;
}, 1000)
},
willClose: () => {
Expand Down

0 comments on commit a6b3c33

Please sign in to comment.