Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/account/preferences/PreferencesGlobalSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useForm } from '../../hooks/useForm';
const PreferencesGlobalSection = ({ onChange, ...props }) => {
const t = useTranslation();

const userDontAskAgainList = useUserPreference('dontAskAgainList');
const userDontAskAgainList = useUserPreference('dontAskAgainList') || [];
Comment thread
ggazzo marked this conversation as resolved.
Outdated

const options = useMemo(() => userDontAskAgainList.map(({ action, label }) => [action, label]), [userDontAskAgainList]);
Comment thread
ggazzo marked this conversation as resolved.
Outdated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useForm } from '../../hooks/useForm';

const PreferencesLocalizationSection = ({ onChange, ...props }) => {
const t = useTranslation();
const userLanguage = useUserPreference('language');
const userLanguage = useUserPreference('language') || '';
const languages = useLanguages();

const languageOptions = useMemo(() => languages.map(({ key, name }) => [key, name]).sort(([a], [b]) => a - b), [languages]);
Expand Down