File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
apps/code/src/renderer/features
settings/components/sections Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import { useSeatStore } from "@features/billing/stores/seatStore" ;
2+ import { useSettingsDialogStore } from "@features/settings/stores/settingsDialogStore" ;
23import { PostHogAPIClient } from "@renderer/api/posthogClient" ;
34import { trpcClient } from "@renderer/trpc/client" ;
45import {
@@ -876,6 +877,7 @@ export const useAuthStore = create<AuthState>()(
876877 sessionResetCallback ?.( ) ;
877878
878879 useSeatStore . getState ( ) . reset ( ) ;
880+ useSettingsDialogStore . getState ( ) . close ( ) ;
879881 trpcClient . analytics . resetUser . mutate ( ) ;
880882
881883 if ( refreshTimeoutId ) {
Original file line number Diff line number Diff line change 11import { useAuthStore } from "@features/auth/stores/authStore" ;
22import { SettingRow } from "@features/settings/components/SettingRow" ;
3+ import { useSettingsDialogStore } from "@features/settings/stores/settingsDialogStore" ;
34import { useSettingsStore } from "@features/settings/stores/settingsStore" ;
45import { useFeatureFlag } from "@hooks/useFeatureFlag" ;
56import { Button , Flex , Switch } from "@radix-ui/themes" ;
@@ -23,9 +24,10 @@ export function AdvancedSettings() {
2324 < Button
2425 variant = "soft"
2526 size = "1"
26- onClick = { ( ) =>
27- useAuthStore . setState ( { hasCompletedOnboarding : false } )
28- }
27+ onClick = { ( ) => {
28+ useSettingsDialogStore . getState ( ) . close ( ) ;
29+ useAuthStore . setState ( { hasCompletedOnboarding : false } ) ;
30+ } }
2931 >
3032 Reset
3133 </ Button >
You can’t perform that action at this time.
0 commit comments