Skip to content
This repository was archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
show the warning only if commitment is available
Browse files Browse the repository at this point in the history
  • Loading branch information
p0o committed May 23, 2021
1 parent d341732 commit 9b34838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wallet/src/components/wallet/Crowdfunding.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default function () {

function handleBackButton() {
// only warn users once!
if (!pledgeIsCopied && warningsCount < 1) {
if (!pledgeIsCopied && unserializedCommitment && warningsCount < 1) {
setWarningsCount(warningsCount + 1);
toast.warning(
"Before leaving, please copy the pledge result to send it manually to the campaign."
Expand Down

0 comments on commit 9b34838

Please sign in to comment.