Fix: Settings refresh() lädt auch frischen /me-State, SW by-v557

This commit is contained in:
rene 2026-04-30 15:31:47 +02:00
parent 97154be246
commit 105262eff3
3 changed files with 10 additions and 3 deletions

View file

@ -64,8 +64,15 @@ window.Page_settings = (() => {
}
}
function refresh() {
async function refresh() {
_render();
if (_appState?.user) {
try {
const fresh = await API.auth.me();
Object.assign(_appState.user, fresh);
_render();
} catch {}
}
}
// ----------------------------------------------------------