From 319fc5e85368873f282b09d95eb522aea3564027 Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Wed, 17 Feb 2021 17:50:33 +0200 Subject: [PATCH] fix(tracker): stack labels display error whenever the stack is not exactly 0 --- tracker/instruments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/instruments.go b/tracker/instruments.go index 0615ca7..0106642 100644 --- a/tracker/instruments.go +++ b/tracker/instruments.go @@ -210,7 +210,7 @@ func (t *Tracker) layoutInstrumentEditor(gtx C) D { if i > 0 { prevStackUse = t.StackUse[i-1] } - if u.StackNeed() > prevStackUse || (i == len(t.StackUse)-1 && t.StackUse[i] > 0) { + if u.StackNeed() > prevStackUse || (i == len(t.StackUse)-1 && t.StackUse[i] != 0) { unitNameLabel.Color = errorColor } }