diff --git a/app.js b/app.js index 7ea42f7..529b5ca 100644 --- a/app.js +++ b/app.js @@ -46,9 +46,10 @@ const app = new Vue({ updateChanceValues() { for (const opt of this.options) { if (!opt.weight) { - continue - } - opt.chance = Math.round(opt.weight / this.totalWeight * 100 ); + opt.chance = ``; + } else { + opt.chance = Math.round(opt.weight / this.totalWeight * 100 ); + }; }; }, },