Skip to content

Commit

Permalink
chore: check state api
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Jan 20, 2022
1 parent 12b5b91 commit c9fe84f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/component/ClaimAirdrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@ const ClaimAirdrop: React.FC<Props> = ({ className }) => {
.finally(() => {});
}, []);

useEffect(() => {
axios.get('/api/airdrop/state', {
timeout: 3000,
})
.then((res) => {
console.log('state:', res);
})
.catch((err) => {
console.error('state', err);
console.error('state response', err.response);
})
.finally(() => {});
}, []);

return (
<>
<div className={clsx(className)}>
Expand Down

0 comments on commit c9fe84f

Please sign in to comment.