This commit is contained in:
Timothy Jaeryang Baek 2025-08-21 13:13:38 +04:00
parent e96d139180
commit 7ede54ee0a
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@
text = text.replaceAll('{{USER_LOCATION}}', String(location)); text = text.replaceAll('{{USER_LOCATION}}', String(location));
} }
const sessionUser = getSessionUser(localStorage.token); const sessionUser = await getSessionUser(localStorage.token);
if (text.includes('{{USER_NAME}}')) { if (text.includes('{{USER_NAME}}')) {
const name = sessionUser?.name || 'User'; const name = sessionUser?.name || 'User';

View file

@ -178,7 +178,7 @@
text = text.replaceAll('{{USER_LOCATION}}', String(location)); text = text.replaceAll('{{USER_LOCATION}}', String(location));
} }
const sessionUser = getSessionUser(localStorage.token); const sessionUser = await getSessionUser(localStorage.token);
if (text.includes('{{USER_NAME}}')) { if (text.includes('{{USER_NAME}}')) {
const name = sessionUser?.name || 'User'; const name = sessionUser?.name || 'User';