Fixes display names not rendering with emojis (#37251)

This commit is contained in:
Echo
2025-12-15 13:54:46 +01:00
committed by GitHub
parent 2984f377e8
commit 5fa7654688
7 changed files with 36 additions and 29 deletions

View File

@@ -25,7 +25,7 @@ function loaded() {
const initialState = JSON.parse(
propsNode.textContent,
) as ApiAnnualReportResponse;
) as ApiAnnualReportResponse & { me?: string };
const report = initialState.annual_reports[0];
if (!report) {
@@ -35,7 +35,10 @@ function loaded() {
// Set up store
store.dispatch(
hydrateStore({
meta: { locale: document.documentElement.lang },
meta: {
locale: document.documentElement.lang,
me: initialState.me,
},
accounts: initialState.accounts,
}),
);