Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/next-common/hooks/treasury/useSpendCountdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function getSpendIndex(storageKey) {
}

function isSpendCompleted(spend) {
const state = spend?.state?.toString?.() || spend?.status?.toString?.();
return ["Paid", "Processed"].includes(state);
return spend.status.isAttempted;
}

function getSpendCountdown(spend, chainHeight) {
Expand Down
Loading