From 5b6a78d933098d3e61b5429fff8f4be8fab35c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Sat, 7 Jul 2018 12:02:44 +0200 Subject: [PATCH] API_BASE: move a / from the constant to the actual (only) usage --- src/api/Ledger.js | 2 +- src/config/constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/Ledger.js b/src/api/Ledger.js index f84d0f7c..f5c5e9a6 100644 --- a/src/api/Ledger.js +++ b/src/api/Ledger.js @@ -3,4 +3,4 @@ import type { Currency } from '@ledgerhq/live-common/lib/types' import { LEDGER_REST_API_BASE } from 'config/constants' export const blockchainBaseURL = ({ ledgerExplorerId }: Currency): ?string => - ledgerExplorerId ? `${LEDGER_REST_API_BASE}blockchain/v2/${ledgerExplorerId}` : null + ledgerExplorerId ? `${LEDGER_REST_API_BASE}/blockchain/v2/${ledgerExplorerId}` : null diff --git a/src/config/constants.js b/src/config/constants.js index e8b8f3b5..a5e643f4 100644 --- a/src/config/constants.js +++ b/src/config/constants.js @@ -47,7 +47,7 @@ export const LEDGER_COUNTERVALUES_API = stringFromEnv( ) export const LEDGER_REST_API_BASE = stringFromEnv( 'LEDGER_REST_API_BASE', - 'https://explorers.api.live.ledger.com/', + 'https://explorers.api.live.ledger.com', ) export const MANAGER_API_BASE = stringFromEnv( 'MANAGER_API_BASE',