change check from ternary to full if block

pull/5370/head
Joseph Izang 6 months ago committed by Aniket
parent 27b171e45f
commit e7938d5329
  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) => { Object.keys(this.icons).map((o) => {
this.icons[o].active = false 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() this.renderComponent()
}) })
} }

Loading…
Cancel
Save