Browse Source

API_BASE: move a / from the constant to the actual (only) usage

master
Gaëtan Renaudeau 7 years ago
parent
commit
5b6a78d933
  1. 2
      src/api/Ledger.js
  2. 2
      src/config/constants.js

2
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

2
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',

Loading…
Cancel
Save