()
| 269 | // --- Button pressing functions --- |
| 270 | |
| 271 | const onClickConnectWalletButton = async () => { |
| 272 | const { status, address } = await connectWallet(); |
| 273 | |
| 274 | if (address != null) { |
| 275 | openModalWithOptions(`Wallet ${truncateAddr(address)} has been connected!`, true); |
| 276 | setWalletAddr(address); |
| 277 | } else { |
| 278 | openModalWithOptions(`${status}`, true); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | const onClickDonateButton = async () => { |
| 283 | if (walletAddr === "") { |
nothing calls this directly
no test coverage detected