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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user