change check from ternary to full if block

pull/4792/head^2
Joseph Izang 6 months ago committed by Aniket
parent 0411fe4036
commit fa035bd5fc
  1. 5
      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()
})
}

Loading…
Cancel
Save