Hi, I have 2 tables that I use to show the Transaction of the current users and the Affiliate Earnings that are both under 1 table.
I tried to just duplicate the query but Iโm having an error:
Cannot redeclare block-scoped variable โdataโ.
const { data } = useMoralisQuery(
"Transactions",
(query) =>
query
.equalTo("ethAddress", user?.get('ethAddress')),
[],
);
const { data } = useMoralisQuery(
"Transactions",
(query) =>
query
.equalTo("affiliateCode", user?.get('affiliateCode')),
[],
);