Skip to content

Commit

Permalink
change from get to post method
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-isa committed May 7, 2021
1 parent c112d78 commit 5a93273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const Dashboard = () => {
let config = {
headers : { authorization: `Bearer ${token}` }
};
const count = await axiosConfig.get('/monthly', setDate, config)
const temp = count.data;
setCountdata(temp)
await axiosConfig.post('/monthly', setDate, config).then((res) => {
setCountdata(res.data)
})
} catch(error) {

}
Expand Down

0 comments on commit 5a93273

Please sign in to comment.