toFixed(2); // variable to display total ether received in USD const totalEtherReceivedInUsd = ((totalEtherReceived ?? 0) * Number(ethToUsdRate)).toFixed(2); Required Connect Network Validity const checkNetwork = async () => { const networkId = await web3.eth.net.getId(); if (...