From fa035bd5fc06729f224b28ca96e0c07ec9b82322 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 14 May 2024 11:22:22 +0100 Subject: [PATCH] change check from ternary to full if block --- apps/remix-ide/src/app/components/vertical-icons.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/components/vertical-icons.tsx b/apps/remix-ide/src/app/components/vertical-icons.tsx index a9e8f83c20..4d54c5a855 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.tsx +++ b/apps/remix-ide/src/app/components/vertical-icons.tsx @@ -73,7 +73,10 @@ export class VerticalIcons extends Plugin { Object.keys(this.icons).map((o) => { this.icons[o].active = false }) - this.icons[name] ? this.icons[name].active = true : null + + if (this.icons[name]) { + this.icons[name].active = true + } this.renderComponent() }) }