@internetarchive/ia-book-actions 0.1.4-alpha2 → 0.1.4-alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-book-actions",
3
- "version": "0.1.4-alpha2",
3
+ "version": "0.1.4-alpha3",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -141,8 +141,8 @@ export default class TimerCountdown extends LitElement {
141
141
  const secondsShouldLeft = this.secondsLeftOnLoan - diffInSeconds;
142
142
 
143
143
  // convert in minutes
144
- const whatIsleft = Math.round(timerSecondsLeft);
145
- const whatShouldLeft = Math.round(secondsShouldLeft);
144
+ const whatIsleft = Math.round(timerSecondsLeft / 60);
145
+ const whatShouldLeft = Math.round(secondsShouldLeft / 60);
146
146
 
147
147
  if (whatIsleft !== whatShouldLeft) {
148
148
  console.log("timer is gone off, let's re-sync");