diff --git a/app/soapbox/actions/patron.js b/app/soapbox/actions/patron.js index 3f32e2ad8..ec9a35241 100644 --- a/app/soapbox/actions/patron.js +++ b/app/soapbox/actions/patron.js @@ -1,12 +1,11 @@ -import axios from 'axios'; +import api from '../api'; export const PATRON_FUNDING_IMPORT = 'PATRON_FUNDING_IMPORT'; export const PATRON_FUNDING_FETCH_FAIL = 'PATRON_FUNDING_FETCH_FAIL'; export function fetchFunding() { return (dispatch, getState) => { - const baseUrl = getState().getIn(['soapbox', 'extensions', 'patron', 'baseUrl']); - axios.get(`${baseUrl}/api/patron/v1/instance`).then(response => { + api(getState).get('/api/patron/v1/instance').then(response => { dispatch(importFetchedFunding(response.data)); }).catch(error => { dispatch(fetchFundingFail(error));