Eslint problem
How can I fix that?
const tier = api.user.getTier.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`);
const tokens = api.user.getTokens.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`);
const tier = api.user.getTier.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`);
const tokens = api.user.getTokens.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`);
if (user.isSignedIn) { api.user.checkUser.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`); }
if (user.isSignedIn) { api.user.checkUser.useQuery(`${user.user?.emailAddresses[0]?.emailAddress}`); }
![](https://utfs.io/f/7c498601-9337-4c92-9276-1ecb655f8e06-1nq2cb.png)
1 Reply
Solved doing:
const tier = api.user.getTier.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`);
const tokens = api.user.getTokens.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`);
const tier = api.user.getTier.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`);
const tokens = api.user.getTokens.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`);
if (user.isSignedIn) { api.user.checkUser.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`); }
if (user.isSignedIn) { api.user.checkUser.useQuery(`${user.user?.emailAddresses[0]?.emailAddress!}`); }