From 5f3a5258ed013f204d00cd5a9e3e393212c6814d Mon Sep 17 00:00:00 2001 From: Klas <31806893+klassare@users.noreply.github.com> Date: Fri, 13 Jul 2018 12:28:58 +0200 Subject: [PATCH] Fix accounts import (#4) * fix minor bug * update version --- package.json | 2 +- src/app/services/import.service.ts | 2 +- src/electron/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e5bc99db7..6f58c70dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kukai", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "scripts": { "ng": "ng", diff --git a/src/app/services/import.service.ts b/src/app/services/import.service.ts index 361d7094f..1bfe7cf25 100644 --- a/src/app/services/import.service.ts +++ b/src/app/services/import.service.ts @@ -94,7 +94,7 @@ export class ImportService { if (data[i].type.operations[0].kind === 'reveal') { index = 1; } - const KT = data[i].type.operations[i].tz1; + const KT = data[i].type.operations[index].tz1; if (KT !== pkh) { this.walletService.addAccount(KT); console.log('Added: ' + KT); diff --git a/src/electron/package.json b/src/electron/package.json index 2fa6adec5..a3bf3562c 100644 --- a/src/electron/package.json +++ b/src/electron/package.json @@ -1,6 +1,6 @@ { "name": "kukai", - "version": "1.0.1", + "version": "1.0.2", "main": "main.js", "scripts": { "start": "electron ."