Update swap-panel-component.js

pull/1/head
yann300 6 years ago committed by GitHub
parent 83e4561f82
commit 7fba504719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/app/components/swap-panel-component.js

@ -22,10 +22,10 @@ class SwapPanelComponent {
}) })
this.store.event.on('activate', (name) => { this.store.event.on('activate', (name) => {
let item = this.store.get(name) const { profile, api } = this.store.get(name)
if (((item.profile.prefferedLocation === this.name) || (!item.profile.prefferedLocation && opt.default)) && if (((profile.prefferedLocation === this.name) || (!profile.prefferedLocation && opt.default)) &&
item.profile.icon && item.api.render && typeof item.api.render === 'function') { profile.icon && api.render && typeof api.render === 'function') {
this.add(name, item.api.render()) this.add(name, api.render())
} }
}) })

Loading…
Cancel
Save