fix: avoid repeated daily starlanguage refresh
This commit is contained in:
@@ -102,6 +102,7 @@ import {
|
||||
requestOnboardingWithRecovery,
|
||||
} from "@/lib/onboarding-client";
|
||||
import { protectOnboardingPhrases } from "@/lib/onboarding-copy";
|
||||
import { preserveShallowEqual } from "@/lib/preserve-shallow-equal";
|
||||
import {
|
||||
SessionModelPersistenceQueue,
|
||||
persistSessionModelSelection,
|
||||
@@ -1797,7 +1798,7 @@ export default function Home() {
|
||||
const latest = await fetchAccount();
|
||||
if (!accountRefreshGuard.current.isCurrent(requestIdentity)) return;
|
||||
const nextProfile = readProfile(latest.profile);
|
||||
setProfile(nextProfile);
|
||||
setProfile((current) => preserveShallowEqual(current, nextProfile));
|
||||
setAccount(latest);
|
||||
setAccountError("");
|
||||
} catch (caught) {
|
||||
|
||||
Reference in New Issue
Block a user