const accountId = props.debugAccountId ?? context.accountId; // change this back to !accountId if (!accountId) { } const profile = Social.getr(`${accountId}/profile`); if (profile === null) { return ""; } const name = profile.name; const image = profile.image; return ( <div> <div> {accountId && !name && ( <div className="alert alert-warning rounded-4 mb-3"> <p>Your profile is missing a name.</p> {editProfileButton} </div> )} {accountId && !image.ipfs_cid && (!image.nft.contractId || !image.nft.tokenId) && !image.url && ( <div className="alert alert-warning rounded-4 mb-3"> <p>Your profile is missing a picture.</p> {editProfileButton} </div> )} </div> <div class="text-center container"> <div class="container"> <div class="row "> <h1 class="fw-light">Monthly Active Accounts</h1> <div class="row"> <Widget src="y3k.near/widget/NEAR-ATLAS-MonthlyActiveAcounts" props={{}} /> </div> <div class="row"> <div class="card shadow-sm bg-dark"> <h1 class="fw-light">NEAR TOP Dapps</h1> <Widget src="y3k.near/widget/NEAR.ATLAS.REACT.TABLE.TOP.DAPPS" /> </div> </div> </div> </div> </div> </div> );