From cd6f23bc5c5b5b29e5227e8d111e866a861a5979 Mon Sep 17 00:00:00 2001 From: ArcaneDisgea Date: Fri, 28 May 2021 15:19:49 -0400 Subject: [PATCH] adjust mimo percent to be 0 if user has none --- create-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-card.js b/create-card.js index 4dd35bd..e968187 100644 --- a/create-card.js +++ b/create-card.js @@ -357,12 +357,12 @@ class CardCreator { } // Minion & Mount percentages - var mountsPct = '??'; + var mountsPct = '0'; if (data.Mounts !== null) { mountsPct = Math.ceil((data.Mounts.length / this.countMount) * 100); } - var minionsPct = '??'; + var minionsPct = '0'; if (data.Minions !== null) { minionsPct = Math.ceil((data.Minions.length / this.countMinion) * 100); }