Skip to content

Commit

Permalink
fix: moved declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
parvez-ahammed committed Jan 24, 2025
1 parent 2c95251 commit d6ae987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/context/PreferencesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const PreferencesProvider = ({ children }: PreferencesProviderProps) => {
language: defaultPreferences.language,
});
const [loading, setLoading] = useState(true);
const { changeLanguage, currentLanguage } = useLocales();

useEffect(() => {
const loadPreferences = async () => {
Expand All @@ -52,7 +53,6 @@ export const PreferencesProvider = ({ children }: PreferencesProviderProps) => {

loadPreferences();
}, []);
const { changeLanguage, currentLanguage } = useLocales();
useEffect(() => {
if (!preferences.title) {
preferences.title = defaultPreferences.title;
Expand Down

0 comments on commit d6ae987

Please sign in to comment.