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