Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from pixelaw/fix/too-many-toast
Browse files Browse the repository at this point in the history
chore: add commitment error to see logs.
  • Loading branch information
0xshora authored Jul 4, 2024
2 parents e10d935 + 2f15c68 commit 143b6b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ const NewProposalPopupForMain: React.FC = () => {
).then(() => {
setIsCreatingNewProposal(false);
// toastProposalAdded('Proposal Added'); // should be broadcast for everyone.
}).catch(e => toastContractError(e))
}).catch((e) => {
console.error("handleSubmit error: ", e)
toastContractError(e)
})
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const ProposalListForMain: React.FC<ProposalListForMainProps> = ({ headerHeight,
)
.then(() => setSelectedProposal(null))
.catch((e) => {
console.error("handleVoteProposal error: ", e)
toastContractError(e)
})
}
Expand Down
1 change: 1 addition & 0 deletions src/components/ProposalList/ProposalItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const ProposalItem: React.FC<PropsType> = ({ proposal, onStartVote, filter, sear
)
.then(() => console.log('activateProposal'))
.catch((e) => {
console.error("handleActivateProposal error: ", e)
toastContractError(e)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDojoInteractHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const useDojoInteractHandler = (pixelStore: PixelStore, gameData: IPixela
// Do something with the UI?
})
.catch(e => {
console.error(e)
console.error("dojocall error", e)
toastContractError(e)
})
setClickedCell(undefined)
Expand Down

0 comments on commit 143b6b8

Please sign in to comment.