Skip to content

Commit

Permalink
fix: Dont allow Sanction Modal and DonateWrongNetwork Modal overshado…
Browse files Browse the repository at this point in the history
…wing
  • Loading branch information
Hrithik Sampson authored and Hrithik Sampson committed Aug 20, 2024
1 parent 5af5f63 commit f585529
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/views/donate/OnTime/OneTimeDonationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,27 +343,27 @@ const CryptoDonation: FC<{

return (
<MainContainer>
{isSanctioned && (
<SanctionModal
closeModal={() => {
setIsSanctioned(false);
}}
/>
)}
{showQFModal && (
<QFModal
donateWithoutMatching={donateWithoutMatching}
setShowModal={setShowQFModal}
/>
)}
{showChangeNetworkModal && acceptedChains && (
{!isSanctioned && showChangeNetworkModal && acceptedChains && (
<DonateWrongNetwork
setShowModal={setShowChangeNetworkModal}
acceptedChains={acceptedChains.filter(
chain => chain.chainType !== ChainType.STELLAR,
)}
/>
)}
{isSanctioned && (
<SanctionModal
closeModal={() => {
setIsSanctioned(false);
}}
/>
)}
{showInsufficientModal && (
<InsufficientFundModal
setShowModal={setShowInsufficientModal}
Expand Down

0 comments on commit f585529

Please sign in to comment.