Add trailing `/` to urls (#433)

This commit is contained in:
Uxío 2020-01-15 10:45:44 +01:00 committed by Mikhail Mikheev
parent 523cb7b2c4
commit e0dfc83f7e
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ const fetchTokenCurrenciesBalances = (safeAddress: string) => {
return null return null
} }
const apiUrl = getTxServiceHost() const apiUrl = getTxServiceHost()
const url = `${apiUrl}safes/${safeAddress}/balances/usd` const url = `${apiUrl}safes/${safeAddress}/balances/usd/`
return axios.get(url) return axios.get(url)
} }

View File

@ -47,7 +47,7 @@ class Load extends React.Component<Props> {
await loadSafe(safeName, safeAddress, owners, addSafe) await loadSafe(safeName, safeAddress, owners, addSafe)
const url = `${SAFELIST_ADDRESS}/${safeAddress}/balances` const url = `${SAFELIST_ADDRESS}/${safeAddress}/balances/`
history.push(url) history.push(url)
} catch (error) { } catch (error) {
console.error('Error while loading the Safe', error) console.error('Error while loading the Safe', error)

View File

@ -102,7 +102,7 @@ const renderApp = (store: Store) => ({
export const renderSafeView = (store: Store<GlobalState>, address: string) => { export const renderSafeView = (store: Store<GlobalState>, address: string) => {
const app = renderApp(store) const app = renderApp(store)
const url = `${SAFELIST_ADDRESS}/${address}/balances` const url = `${SAFELIST_ADDRESS}/${address}/balances/`
history.push(url) history.push(url)
return app return app