Skip to content

Commit

Permalink
bug(users): Bugfix signup page
Browse files Browse the repository at this point in the history
- Replace apiUrl with API_BASE_URL

[Fixes #166840878]
  • Loading branch information
tolumide-ng committed Aug 23, 2019
1 parent 0b55939 commit 89795dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/config/index.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/store/modules/auth/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import axios from 'axios';
import * as Toastr from 'toastr';
import { saveToLocalStorage, decodeToken } from '../../../../utils';
import { AUTH_PENDING, AUTH_SUCCESS, AUTH_FAILURE } from '../actionTypes';
import config from '../../../../config';

export const authPending = () => ({
type: AUTH_PENDING,
Expand Down Expand Up @@ -50,7 +49,7 @@ export const authAction = ({

const response = await axios({
method: 'post',
url: `${process.env.apiUrl}/auth/${authRoute}`,
url: `${process.env.API_BASE_URL}/auth/${authRoute}`,
data: details
});
const { token } = response.data.data;
Expand Down

0 comments on commit 89795dd

Please sign in to comment.