Skip to content

Commit

Permalink
Set purpose before re-calculate the derivation path
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Nov 29, 2022
1 parent df3399b commit b455ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular/src/app/account/create/create.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class AccountCreateComponent implements OnInit, OnDestroy {
private networkStatusService: NetworkStatusService,
private cd: ChangeDetectorRef,
private snackBar: MatSnackBar,
public translate: TranslateService,
public translate: TranslateService
) {
this.icon = icons.default;

Expand Down Expand Up @@ -135,8 +135,8 @@ export class AccountCreateComponent implements OnInit, OnDestroy {

onNetworkChanged() {
this.selectedNetwork = this.networkService.getNetwork(this.network);
this.derivationPath = this.getDerivationPath();
this.purpose = this.selectedNetwork.purpose ?? 44;
this.derivationPath = this.getDerivationPath();
}

onPurposeChanged() {
Expand Down

0 comments on commit b455ac7

Please sign in to comment.