1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Fix wrong backendurl being used for meta data fetching

This commit is contained in:
mrjvs 2023-12-29 20:39:53 +01:00
parent 378a1696b3
commit 41f83f4bef

View file

@ -25,7 +25,7 @@ export function TrustBackendPart(props: TrustBackendPartProps) {
const backendUrl = useBackendUrl(); const backendUrl = useBackendUrl();
const hostname = useMemo(() => new URL(backendUrl).hostname, [backendUrl]); const hostname = useMemo(() => new URL(backendUrl).hostname, [backendUrl]);
const result = useAsync(() => { const result = useAsync(() => {
return getBackendMeta(conf().BACKEND_URL); return getBackendMeta(backendUrl);
}, [backendUrl]); }, [backendUrl]);
const { t } = useTranslation(); const { t } = useTranslation();