Forgot the await
This commit is contained in:
parent
9e35f114c3
commit
223b2b44a0
@ -40,9 +40,9 @@ export default function Terms(props: PageProps<Extract<KcContext, { pageId: "ter
|
|||||||
return tos_url;
|
return tos_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tosRawMarkdown = fetch(tos_url).then(response => response.text());
|
const markdownString = await fetch(tos_url).then(response => response.text());
|
||||||
|
|
||||||
return tosRawMarkdown;
|
return markdownString;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user