adrianhajdin / project_crowdfunding

With a stunning design, connected to the blockchain, metamask pairing, interaction with smart contracts, sending Ethereum through the blockchain network, and writing solidity code.
https://jsmastery.pro
704 stars 380 forks source link

Update CampaignDetails.jsx #10

Closed gvnut closed 1 year ago

gvnut commented 1 year ago

There was an issue where if a user didnt connect their wallet and clicked donate. If would throw the loading screen forever. I have made an update to change the donate button to a connect button if the user does not have a connected wallet. And once it is connected, the button changes back into the donate button