From 779105e63efe2dda93285462715883ac804c546e Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 3 Oct 2018 12:29:23 -0300 Subject: [PATCH] fix: Shapeshift integration (API-KEY) --- src/providers/shapeshift/shapeshift.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/providers/shapeshift/shapeshift.ts b/src/providers/shapeshift/shapeshift.ts index 397d04f7920..095e8abe368 100644 --- a/src/providers/shapeshift/shapeshift.ts +++ b/src/providers/shapeshift/shapeshift.ts @@ -24,15 +24,6 @@ export class ShapeshiftProvider { this.logger.debug('ShapeshiftProvider Provider initialized'); this.credentials = {}; - // (Optional) Affiliate PUBLIC KEY, for volume tracking, affiliate payments, split-shifts, etc. - if ( - this.appProvider.servicesInfo && - this.appProvider.servicesInfo.shapeshift - ) { - this.credentials.API_KEY = - this.appProvider.servicesInfo.shapeshift.api_key || null; - } - /* * Development: 'testnet' * Production: 'livenet' @@ -171,5 +162,13 @@ export class ShapeshiftProvider { page: 'ShapeshiftPage', show: !!this.configProvider.get().showIntegration['shapeshift'] }); + // (Mandatory) Affiliate PUBLIC KEY, for volume tracking, affiliate payments, split-shifts, etc. + if ( + this.appProvider.servicesInfo && + this.appProvider.servicesInfo.shapeshift + ) { + this.credentials.API_KEY = + this.appProvider.servicesInfo.shapeshift.api_key || null; + } } }