From bf0701340c08b461dd21068f49364f202fed6dbc Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Sat, 15 Oct 2016 09:10:40 +0100 Subject: [PATCH] Use UTF-8 glyph for infinity rather than custom SVG --- src/app/components/InternalSlot.jsx | 2 +- src/app/utils/SlotFunctions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/InternalSlot.jsx b/src/app/components/InternalSlot.jsx index 60ec85bd..4c38afd7 100644 --- a/src/app/components/InternalSlot.jsx +++ b/src/app/components/InternalSlot.jsx @@ -39,7 +39,7 @@ export default class InternalSlot extends Slot { { m.time ?
{translate('time')}: {formats.time(m.time)}
: null } { m.maximum ?
{translate('max')}: {(m.maximum)}
: null } { m.rangeLS ?
{translate('range')}: {m.rangeLS}{u.Ls}
: null } - { m.rangeLS === null ?
{u.Ls}
: null } + { m.rangeLS === null ?
∞{u.Ls}
: null } { m.rangeRating ?
{translate('range')}: {m.rangeRating}
: null } { m.armouradd ?
+{m.armouradd} {translate('armour')}
: null } diff --git a/src/app/utils/SlotFunctions.js b/src/app/utils/SlotFunctions.js index 4069a54e..3ea6ac0a 100644 --- a/src/app/utils/SlotFunctions.js +++ b/src/app/utils/SlotFunctions.js @@ -184,7 +184,7 @@ function diffClass(a, b, negative) { */ function diff(format, mVal, mmVal) { if (mVal == Infinity) { - return ; + return '∞'; } else { let diff = mVal - mmVal; if (!diff || mVal === undefined || diff == mVal || Math.abs(diff) == Infinity) {