message: x fix zero-balance nimiq accounts
diff: @@ -38,6 +38,8 @@ const initNimiq = async () => {
  }
  async function initWallet(privateKey) {
  + await init()
  +
  const keyPair = ethKeyToKeyPair(privateKey)
  return new window.Nimiq.Wallet(keyPair)
  @@ -73,10 +75,12 @@ async function init() {
  }
  const login = async (ethPrivateKey) => {
  - await init()
  + await initNimiq()
  $.wallet = await initWallet(ethPrivateKey)
  + init()
  +
  const data = {
  balance: 0,
  address: $.wallet.address.toUserFriendlyAddress(),
  @@ -92,7 +96,8 @@ const getBalance = async () => {
  await init()
  const account = await $.consensus.getAccount($.wallet.address)
  - const amount = window.Nimiq.Policy.satoshisToCoins(account.balance).toFixed(0)
  + const balance = (account != null) ? account.balance : 0
  + const amount = window.Nimiq.Policy.satoshisToCoins(balance).toFixed(0)
  reducers.user.setBalance({ name: 'nimData', amount })
  