Browse Source

fix crash on front page when acqing items.

master
Gisle Aune 2 years ago
parent
commit
3737a80c46
  1. 5
      frontend/src/lib/components/common/Progress.svelte

5
frontend/src/lib/components/common/Progress.svelte

@ -67,6 +67,11 @@
// Mark it non-segmented if the target is too high. This prevents a clunky progress bar,
// or a browser freeze if you set the target very high.
nonSegmented = alwaysSmooth || (target >= 60);
if (!nonSegmented) {
ons = Math.round(ons);
offs = Math.round(offs);
}
} else {
offClass = "none";
nonSegmented = alwaysSmooth;

Loading…
Cancel
Save