mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac
This commit is contained in:
parent
e96d139180
commit
7ede54ee0a
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@
|
|||
text = text.replaceAll('{{USER_LOCATION}}', String(location));
|
||||
}
|
||||
|
||||
const sessionUser = getSessionUser(localStorage.token);
|
||||
const sessionUser = await getSessionUser(localStorage.token);
|
||||
|
||||
if (text.includes('{{USER_NAME}}')) {
|
||||
const name = sessionUser?.name || 'User';
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@
|
|||
text = text.replaceAll('{{USER_LOCATION}}', String(location));
|
||||
}
|
||||
|
||||
const sessionUser = getSessionUser(localStorage.token);
|
||||
const sessionUser = await getSessionUser(localStorage.token);
|
||||
|
||||
if (text.includes('{{USER_NAME}}')) {
|
||||
const name = sessionUser?.name || 'User';
|
||||
|
|
|
|||
Loading…
Reference in a new issue