From 73c3b137610f59f237d7e5b78e3bffdb183d01e1 Mon Sep 17 00:00:00 2001 From: Bruno Ribeiro Date: Tue, 7 Jan 2025 16:22:54 +0000 Subject: [PATCH] Fixed default global value --- .../desktop-client/src/components/settings/LearnCategories.tsx | 2 +- .../src/components/transactions/TransactionList.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/settings/LearnCategories.tsx b/packages/desktop-client/src/components/settings/LearnCategories.tsx index 86fbad55af0..2e8b9a6c500 100644 --- a/packages/desktop-client/src/components/settings/LearnCategories.tsx +++ b/packages/desktop-client/src/components/settings/LearnCategories.tsx @@ -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'; diff --git a/packages/desktop-client/src/components/transactions/TransactionList.jsx b/packages/desktop-client/src/components/transactions/TransactionList.jsx index 17307d4a8dc..bbddd7bc85b 100644 --- a/packages/desktop-client/src/components/transactions/TransactionList.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionList.jsx @@ -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(() => {