useQuery key fix

This commit is contained in:
mrfry 2022-04-02 15:03:34 +02:00
parent f0d6daf753
commit 26ae1bc2bb

View file

@ -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()
)