@@ -19,6 +19,7 @@ import { PopupProvider } from '../../../providers/popup/popup';
1919import { ProfileProvider } from '../../../providers/profile/profile' ;
2020import { PushNotificationsProvider } from '../../../providers/push-notifications/push-notifications' ;
2121import {
22+ Coin ,
2223 WalletOptions ,
2324 WalletProvider
2425} from '../../../providers/wallet/wallet' ;
@@ -38,6 +39,7 @@ export class JoinWalletPage {
3839 private derivationPathByDefault : string ;
3940 private derivationPathForTestnet : string ;
4041 private regex : RegExp ;
42+ private coin : Coin ;
4143
4244 constructor (
4345 private app : App ,
@@ -76,8 +78,7 @@ export class JoinWalletPage {
7678 bwsURL : [ this . defaults . bws . url ] ,
7779 selectedSeed : [ 'new' ] ,
7880 recoveryPhrase : [ null ] ,
79- derivationPath : [ this . derivationPathByDefault ] ,
80- coin : [ null , Validators . required ]
81+ derivationPath : [ this . derivationPathByDefault ]
8182 } ) ;
8283
8384 this . seedOptions = [
@@ -163,6 +164,7 @@ export class JoinWalletPage {
163164 try {
164165 walletData = this . bwcProvider . parseSecret ( invitation ) ;
165166 this . setDerivationPath ( walletData . network ) ;
167+ this . coin = walletData . coin ;
166168 this . logger . info ( 'Correct invitation code for ' + walletData . network ) ;
167169 } catch ( ex ) {
168170 this . logger . warn ( 'Error parsing invitation: ' + ex ) ;
@@ -175,7 +177,7 @@ export class JoinWalletPage {
175177 secret : this . joinForm . value . invitationCode ,
176178 myName : this . joinForm . value . myName ,
177179 bwsurl : this . joinForm . value . bwsURL ,
178- coin : this . joinForm . value . coin
180+ coin : this . coin
179181 } ;
180182
181183 const setSeed = this . joinForm . value . selectedSeed == 'set' ;
0 commit comments