PadMessageHandler: Fix assignment to const variable

This commit is contained in:
Richard Hansen 2020-09-15 14:57:14 -04:00 committed by John McLear
parent 5ac5b65aff
commit d2773609d1

View file

@ -1175,7 +1175,7 @@ async function handleClientReady(client, message)
let cached = historicalAuthorData[author];
// reuse previously created cache of author's data
const authorInfo = await (cached ? Promise.resolve(cached) : authorManager.getAuthor(author));
let authorInfo = cached ? cached : (await authorManager.getAuthor(author));
// default fallback color to use if authorInfo.colorId is null
const defaultColor = "#daf0b2";