Skip to content

Commit

Permalink
Fixed default global value
Browse files Browse the repository at this point in the history
  • Loading branch information
NullScope committed Jan 7, 2025
1 parent b755e79 commit 5a12995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Setting } from './UI';

export function LearnCategoriesSettings() {
const { t } = useTranslation();
const [learnCategories = 'false', setLearnCategories] =
const [learnCategories = 'true', setLearnCategories] =
useSyncedPref('learn-categories');
const isLearnCategoriesEnabled = String(learnCategories) === 'true';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function TransactionList({
const dispatch = useDispatch();
const transactionsLatest = useRef();
const navigate = useNavigate();
const [learnCategories = 'false'] = useSyncedPref('learn-categories');
const [learnCategories = 'true'] = useSyncedPref('learn-categories');
const isLearnCategoriesEnabled = String(learnCategories) === 'true';

useLayoutEffect(() => {
Expand Down

0 comments on commit 5a12995

Please sign in to comment.