Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 committed May 20, 2024
1 parent cb15944 commit 65f4daf
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/desktop/components/ManaBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
secondsRemainingCountdownInterval = setInterval(() => {
secondsRemaining -= 1
if (secondsRemaining <= 0) {
refreshTransactionInfo().then(() => {
calculateManaCost()
})
refreshTransactionInfo()
.then(() => {
calculateManaCost()
})
.catch((err) => console.error(err))
clearInterval(secondsRemainingCountdownInterval)
}
}, MILLISECONDS_PER_SECOND)
Expand Down Expand Up @@ -96,9 +98,11 @@
refreshManaCountdownInterval = setInterval(() => {
secondsToRefreshManaCost -= 1
if (secondsToRefreshManaCost <= 0) {
refreshTransactionInfo().then(() => {
calculateManaCost()
})
refreshTransactionInfo()
.then(() => {
calculateManaCost()
})
.catch((err) => console.error(err))
secondsToRefreshManaCost = NUMBER_OF_EXTRA_SLOTS_MANA * DEFAULT_SECONDS_PER_SLOT
}
}, MILLISECONDS_PER_SECOND)
Expand Down

0 comments on commit 65f4daf

Please sign in to comment.