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