Skip to content

Commit

Permalink
fix: function name
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Dec 15, 2024
1 parent 41f3fc0 commit cc27ea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/lib/stores/user.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const defaultUserInteraction: UserInteractions = {
serverInfo: undefined,
};

export const resetUserInteractoin = () => {
export const resetUserInteraction = () => {
Object.assign(userInteraction, defaultUserInteraction);
};

Expand Down
4 changes: 2 additions & 2 deletions web/src/lib/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { goto } from '$app/navigation';
import { foldersStore } from '$lib/stores/folders.svelte';
import { purchaseStore } from '$lib/stores/purchase.store';
import { preferences as preferences$, resetSavedUser, user as user$ } from '$lib/stores/user.store';
import { resetUserInteractoin, userInteraction } from '$lib/stores/user.svelte';
import { resetUserInteraction, userInteraction } from '$lib/stores/user.svelte';
import { getAboutInfo, getMyPreferences, getMyUser, getStorage } from '@immich/sdk';
import { redirect } from '@sveltejs/kit';
import { DateTime } from 'luxon';
Expand Down Expand Up @@ -99,7 +99,7 @@ export const handleLogout = async (redirectUri: string) => {
}
} finally {
resetSavedUser();
resetUserInteractoin();
resetUserInteraction();
foldersStore.clearCache();
}
};

0 comments on commit cc27ea5

Please sign in to comment.