Forgot the await
This commit is contained in:
1 parent
9e35f114c3
commit
223b2b44a0
1 file changed
+2
-2
@@ -40,9 +40,9 @@ export default function Terms(props: PageProps<Extract<KcContext, { pageId: "ter
|
||||
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;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user