From 26ae1bc2bbea42551cf3990adcab5348edb7be64 Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 2 Apr 2022 15:03:34 +0200 Subject: [PATCH] useQuery key fix --- src/pages/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() )