diff --git a/src/pages/script.js b/src/pages/script.js index 79637b0..d5f8f40 100644 --- a/src/pages/script.js +++ b/src/pages/script.js @@ -9,7 +9,7 @@ import ExternalLinkIcon from '../components/externalLinkIcon' import styles from './script.module.css' -function fetchSupportedSites() { +function fetchSurouter.pathnamepportedSites() { return new Promise((resolve) => { fetch(`${constants.apiUrl}supportedSites`, { credentials: 'include', @@ -24,7 +24,7 @@ function fetchSupportedSites() { } export default function Script() { - const { data: supportedSites } = useQuery('leaderBoard', () => + const { data: supportedSites } = useQuery('supportedSites', () => fetchSupportedSites() )