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

Commit

Permalink
Merge pull request #66 from signupcash/hotfix/back-btn
Browse files Browse the repository at this point in the history
Hotfix: show the warning only if commitment is available
  • Loading branch information
p0o authored May 23, 2021
2 parents d341732 + 9b34838 commit df7d03a
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 df7d03a

Please sign in to comment.