Skip to content

Commit

Permalink
fix bug detectin bootloader mode ref #255
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevAlDen committed Feb 28, 2020
1 parent 138d04d commit b951d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contrib/hardware-wallet/skywallet/sky_wallet_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (dev *SkyWalletHelper) ShouldBeInitialized() *promise.Promise {

func (dev *SkyWalletHelper) IsBootloaderMode() *promise.Promise {
return dev.di.Features().Then(func(data interface{}) interface{} {
return *data.(messages.Features).BootloaderMode
return data.(messages.Features).BootloaderMode != nil && *data.(messages.Features).BootloaderMode
})
}

Expand Down

0 comments on commit b951d6c

Please sign in to comment.