Iâm trying to query the item by ownerâs address but canât.
function GamePlay() {
const { account, isAuthenticated } = useMoralis();
const { data, error, isLoading } = useMoralisQuery("Game", (query) => query.equalTo("owner", String(account)), [], { live: true });
if (!isAuthenticated || !account) {
return (
<div>
<h1>login first</h1>
</div>
)
}
return (
<div>
/// component here
</div >
);
}
both String(account) and account donât work.
It will work only using â0xâŚabcâ instead of String(account).
Does it has a way to use account as params?
and it doesnât work on the first load.