1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-10 19:34:18 +00:00

fix: locale change in dropdown doesn't work on first try

This commit is contained in:
Elias Schneider
2025-04-20 00:31:33 +02:00
parent e21ee8a871
commit 60bad9e985

View File

@@ -18,12 +18,12 @@
'it-IT': 'Italiano'
};
function updateLocale(locale: Locale) {
setLocale(locale);
userService.updateCurrent({
async function updateLocale(locale: Locale) {
await userService.updateCurrent({
...$userStore!,
locale
});
setLocale(locale);
}
</script>