Skip to content

Commit

Permalink
Merge pull request #535 from PotLock/feat/payout-flag
Browse files Browse the repository at this point in the history
add flag donations to pot
  • Loading branch information
lachlanglen authored Apr 14, 2024
2 parents 2f42142 + c9d147f commit 1932f5f
Show file tree
Hide file tree
Showing 9 changed files with 1,089 additions and 67 deletions.
4 changes: 3 additions & 1 deletion apps/potlock/widget/ModalDonation/ConfirmDirect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ const ConfirmDirect = (props) => {
<div>
{amount} <span>{selectedDenomination.text}</span>
</div>
{nearToUsd && <div className="usd-amount">~${(nearToUsd * amount).toFixed(2)}</div>}
{nearToUsd && selectedDenomination.text === "NEAR" && (
<div className="usd-amount">~${(nearToUsd * amount).toFixed(2)}</div>
)}
</Amout>
</div>
<div>
Expand Down
3 changes: 2 additions & 1 deletion apps/potlock/widget/ModalDonation/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ const FormDirect = (props) => {
}
};

const isLoading = isUserHumanVerified === null || activeRounds === null;
const isLoading =
donationType === "pot" ? isUserHumanVerified === null || activeRounds === null : false;

return projectId ? (
profile === null ? (
Expand Down
Loading

0 comments on commit 1932f5f

Please sign in to comment.