1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 17:00:19 +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' 'it-IT': 'Italiano'
}; };
function updateLocale(locale: Locale) { async function updateLocale(locale: Locale) {
setLocale(locale); await userService.updateCurrent({
userService.updateCurrent({
...$userStore!, ...$userStore!,
locale locale
}); });
setLocale(locale);
} }
</script> </script>