replaced hard-coded BTC strings in currency selector to allow for other default currencies (ie. BCH); updated ionic version

This commit is contained in:
Darren Nelsen 2018-01-25 14:31:29 -05:00
parent 26571f0f43
commit c02dd53fc5
2 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@
"@types/jasmine": "2.5.41",
"@types/node": "7.0.4",
"codecov": "2.2.0",
"ionic": "3.12.0",
"ionic": "3.19.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",

View File

@ -113,15 +113,15 @@ export class HeadNavComponent {
}
},
{
text: 'BTC',
text: this.currency.defaultCurrency,
handler: () => {
this.currency.setCurrency('BTC');
this.currency.setCurrency(this.currency.defaultCurrency);
}
},
{
text: 'mBTC',
text: 'm' + this.currency.defaultCurrency,
handler: () => {
this.currency.setCurrency('mBTC');
this.currency.setCurrency('m' + this.currency.defaultCurrency);
}
},
{