Skip to content

Commit

Permalink
default to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisL12 committed Aug 15, 2024
1 parent da10dea commit 2d3f49e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/scripts/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ getStorage((options) => {
buildHistory(options);
}
conversionIndex = options.conversionIndex || 0;
totalDistanceCalculated = Math.round(options.totalDistance);
totalDistanceCalculated = options.totalDistance
? Math.round(options.totalDistance)
: 0;
toggleTotalDistanceConversions();
const currentTier = findTier(options.currentDistance);
updateIcon(currentTier.path);
Expand Down

0 comments on commit 2d3f49e

Please sign in to comment.