Skip to content

Commit

Permalink
Fix current user request using wrong http method (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie authored Nov 7, 2021
1 parent cdc38f4 commit 7feab41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/actions/currentUserActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const currentUserActionTypes = {
export const setCurrentUser = () => {
return (dispatch: Dispatch) => {
axios
.post<null | CurrentUserState>('/api/v1/current-user')
.get<null | CurrentUserState>('/api/v1/current-user')
.then((res) => {
console.log(res.data);
if (res.data && res.status === 200) {
Expand Down

0 comments on commit 7feab41

Please sign in to comment.