Fix Receive if no wallet exists

This commit is contained in:
Gustavo Maximiliano Cortez 2017-11-09 16:54:58 -03:00
parent 481bc60134
commit 2ffae2a9c1
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
</div>
<button ion-button (click)="goCopayers()" translate>Open wallet</button>
</div>
<div *ngIf="wallets" class="wallets-container" (click)="showWallets()">
<div *ngIf="wallets[0]" class="wallets-container" (click)="showWallets()">
<img src="assets/img/icon-wallet.svg" class="icon-wallet">
<div class="wallet-text">
<div>{{wallet.name}}</div>

View File

@ -25,7 +25,7 @@ export class ReceivePage {
public protocolHandler: string;
public address: string;
public qrAddress: string;
public wallets: any;
public wallets: Array<any> = [];
public wallet: any;
public showShareButton: boolean;