From 1db98b79e002204c6b7cc767b10dd1556605062a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Fri, 28 May 2021 14:37:54 +0500 Subject: [PATCH] fix warnings --- src/components/Display.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Display.jsx b/src/components/Display.jsx index 7850fda..8b0993f 100644 --- a/src/components/Display.jsx +++ b/src/components/Display.jsx @@ -25,15 +25,18 @@ export const ValueDisplay = ({prefix, value, suffix, isArrowVisible}) =>{ setVal(value) } - },[value]) + },[value, isArrowVisible, oldVal]) let arrow = null switch (arrowState){ case 1: arrow = - break; + break case -1: arrow = + break + default: + break } return({prefix} {val} {suffix}{arrow})