Add trailing `/` to urls (#433)
This commit is contained in:
parent
523cb7b2c4
commit
e0dfc83f7e
|
@ -7,7 +7,7 @@ const fetchTokenCurrenciesBalances = (safeAddress: string) => {
|
|||
return null
|
||||
}
|
||||
const apiUrl = getTxServiceHost()
|
||||
const url = `${apiUrl}safes/${safeAddress}/balances/usd`
|
||||
const url = `${apiUrl}safes/${safeAddress}/balances/usd/`
|
||||
|
||||
return axios.get(url)
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ class Load extends React.Component<Props> {
|
|||
|
||||
await loadSafe(safeName, safeAddress, owners, addSafe)
|
||||
|
||||
const url = `${SAFELIST_ADDRESS}/${safeAddress}/balances`
|
||||
const url = `${SAFELIST_ADDRESS}/${safeAddress}/balances/`
|
||||
history.push(url)
|
||||
} catch (error) {
|
||||
console.error('Error while loading the Safe', error)
|
||||
|
|
|
@ -102,7 +102,7 @@ const renderApp = (store: Store) => ({
|
|||
export const renderSafeView = (store: Store<GlobalState>, address: string) => {
|
||||
const app = renderApp(store)
|
||||
|
||||
const url = `${SAFELIST_ADDRESS}/${address}/balances`
|
||||
const url = `${SAFELIST_ADDRESS}/${address}/balances/`
|
||||
history.push(url)
|
||||
|
||||
return app
|
||||
|
|
Loading…
Reference in New Issue