diff --git a/app/(dashboard)/transactions/page.tsx b/app/(dashboard)/transactions/page.tsx index 52e90bd4..0a293891 100644 --- a/app/(dashboard)/transactions/page.tsx +++ b/app/(dashboard)/transactions/page.tsx @@ -37,7 +37,6 @@ import type { TransactionWithInvoice, ViewMode, CategorizeHandler, - SourceFilter, } from '@/components/transactions/transaction-types' import type { SkattekontoTransactionWithSuggestion, @@ -2460,7 +2459,9 @@ export default function TransactionsPage() { transactions={transactions} skvRows={skvRows} searchTerm={searchTerm} - sourceFilter={sourceFilter} + sourceFilter={ + sourceFilter === 'all' || sourceFilter === 'skatteverket' ? sourceFilter : 'bank' + } onSourceFilterChange={handleSourceFilterChange} jeUnderlagStatus={jeUnderlagStatus} onOpenMatchDialog={openMatchDialog} diff --git a/components/transactions/TransactionHistoryList.tsx b/components/transactions/TransactionHistoryList.tsx index bd45352a..324e64f2 100644 --- a/components/transactions/TransactionHistoryList.tsx +++ b/components/transactions/TransactionHistoryList.tsx @@ -157,7 +157,7 @@ export default function TransactionHistoryList({
setSourceFilter(id as SourceFilter)} + onChange={(id) => onSourceFilterChange(id as SourceFilter)} triggerLabel={ sourceFilter === 'all' ? t('source_all')