Skip to content

Commit

Permalink
Add // eslint-disable-next-line
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasKetterer committed Oct 17, 2024
1 parent a0acdcb commit 0293d42
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function App() {

return uniqueFixtures;
};

const fetchUser = useCallback(async () => {
// eslint-disable-next-line
const fetchUser = async () => {
try {
const encodedUserId = localStorage.getItem('userId');
const token = await getAccessTokenSilently();
Expand All @@ -49,9 +49,9 @@ function App() {
} catch (error) {
console.error('Error fetching wallet balance:', error);
}
}, [getAccessTokenSilently]);
};

const fetchFixtures = useCallback(async () => {
const fetchFixtures = async () => {
try {
const token = await getAccessTokenSilently();
const response = await axios.get('https://api.nodecraft.me/fixtures',
Expand All @@ -66,7 +66,7 @@ function App() {
} catch (error) {
console.error('Error fetching fixtures:', error);
}
}, [getAccessTokenSilently]);
};

const generateLongUserId = () => {
const timestamp = Date.now();
Expand All @@ -75,7 +75,7 @@ function App() {
return `${timestamp}-${highPrecision}-${randomPart}`;
};

const createUser = useCallback(async () => {
const createUser = async () => {
try {
const token = await getAccessTokenSilently();

Expand Down Expand Up @@ -117,7 +117,7 @@ function App() {
} catch (error) {
console.error('Error creating or fetching user:', error);
}
}, [getAccessTokenSilently, user]);
};



Expand Down

0 comments on commit 0293d42

Please sign in to comment.