style(web): format pending-safe sync files

This commit is contained in:
GareArc
2026-07-13 00:08:57 -07:00
parent 568da2ed75
commit 616ea918bf
2 changed files with 10 additions and 3 deletions
@@ -73,7 +73,9 @@ vi.mock('@/app/components/base/amplitude/registration-tracking', () => ({
flushRegistrationSuccess: vi.fn(),
}))
function createProfileQueryData(overrides: Partial<GetAccountProfileResponse> = {}): ProfileQueryData {
function createProfileQueryData(
overrides: Partial<GetAccountProfileResponse> = {},
): ProfileQueryData {
return {
profile: {
id: 'user-1',
@@ -209,7 +211,10 @@ describe('amplitudeIdentitySyncAtom', () => {
await flushAsync()
const settledCallCount = vi.mocked(setUserId).mock.calls.length
queryClient.setQueryData(['user-profile'], createProfileQueryData({ avatar: 'changed-avatar' }))
queryClient.setQueryData(
['user-profile'],
createProfileQueryData({ avatar: 'changed-avatar' }),
)
await flushAsync()
expect(setUserId).toHaveBeenCalledTimes(settledCallCount)
+3 -1
View File
@@ -11,7 +11,9 @@ import { systemFeaturesOrNullAtom } from './system-features-state'
const versionQueryAtom = atomWithQuery((get) => {
const meta = get(accountProfileMetaOrNullAtom)
const systemFeatures = get(systemFeaturesOrNullAtom)
const enabled = Boolean(meta?.currentVersion && systemFeatures && !systemFeatures.branding.enabled)
const enabled = Boolean(
meta?.currentVersion && systemFeatures && !systemFeatures.branding.enabled,
)
return consoleQuery.version.get.queryOptions({
input: {