stop linter quarrel

This commit is contained in:
Maximilian Schneider 2021-07-05 17:32:33 +02:00
parent 1629ff5756
commit 4b8cfe572d
2 changed files with 6 additions and 4 deletions

View File

@ -128,11 +128,12 @@ const ContributionModal = () => {
useEffect(() => {
if (submitting) {
(async () => {
const handleSubmit = async () => {
await actions.submitContribution(contributionAmount)
setSubmitted(true)
setSubmitting(false)
})()
}
handleSubmit()
}
}, [submitting])

View File

@ -127,10 +127,11 @@ export default function useWallet() {
// fetch pool on page load
useEffect(() => {
;(async () => {
const pageLoad = async () => {
await actions.fetchPool()
actions.fetchMints()
})()
}
pageLoad()
}, [])
// refresh usdc vault regularly