Use auth'ed admin chat messages endpoint to get history

This commit is contained in:
Gabe Kangas
2020-12-26 17:36:46 -08:00
parent 71b91a7fe0
commit 5345c124aa
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ export default function Chat() {
const getInfo = async () => {
try {
const result = await fetchData(CHAT_HISTORY, { auth: false });
const result = await fetchData(CHAT_HISTORY, { auth: true });
setMessages(result);
} catch (error) {
console.log("==== error", error);