From c02dd53fc5f25bf5f090424d845f4a5c0ca54371 Mon Sep 17 00:00:00 2001 From: Darren Nelsen Date: Thu, 25 Jan 2018 14:31:29 -0500 Subject: [PATCH] replaced hard-coded BTC strings in currency selector to allow for other default currencies (ie. BCH); updated ionic version --- app/package.json | 2 +- app/src/components/head-nav/head-nav.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/package.json b/app/package.json index b4cc2ae..c7c22d2 100644 --- a/app/package.json +++ b/app/package.json @@ -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", diff --git a/app/src/components/head-nav/head-nav.ts b/app/src/components/head-nav/head-nav.ts index 664e77e..7e439ec 100644 --- a/app/src/components/head-nav/head-nav.ts +++ b/app/src/components/head-nav/head-nav.ts @@ -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); } }, {