mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 14:04:04 +00:00
fix(miniapp): refresh data after locale changes
This commit is contained in:
@@ -1109,6 +1109,7 @@ function App() {
|
||||
: current
|
||||
)
|
||||
setLocale(updated.effectiveLocale)
|
||||
await refreshHouseholdData(initData, true, true)
|
||||
} finally {
|
||||
setSavingMemberLocale(false)
|
||||
}
|
||||
@@ -1141,6 +1142,8 @@ function App() {
|
||||
if (!currentReady.member.preferredLocale) {
|
||||
setLocale(updated.effectiveLocale)
|
||||
}
|
||||
|
||||
await refreshHouseholdData(initData, true, true)
|
||||
} finally {
|
||||
setSavingHouseholdLocale(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user