Skip to content

A local-first personal finance app

Fix mobile Calendar crash from missing DisplayPayeeProvider (#6698)

Copilot9376217c5ea3
diff --git a/packages/desktop-client/src/components/reports/reports/Calendar.tsx b/packages/desktop-client/src/components/reports/reports/Calendar.tsx
index f54c0ea5f1..60d1f45f13 100644
--- a/packages/desktop-client/src/components/reports/reports/Calendar.tsx
+++ b/packages/desktop-client/src/components/reports/reports/Calendar.tsx
@@ -64,6 +64,7 @@ import { useAccounts } from '@desktop-client/hooks/useAccounts';
import { SchedulesProvider } from '@desktop-client/hooks/useCachedSchedules';
import { useCategories } from '@desktop-client/hooks/useCategories';
import { useDateFormat } from '@desktop-client/hooks/useDateFormat';
+import { DisplayPayeeProvider } from '@desktop-client/hooks/useDisplayPayee';
import { useFormat, type FormatType } from '@desktop-client/hooks/useFormat';
import { useLocale } from '@desktop-client/hooks/useLocale';
import { useMergedRefs } from '@desktop-client/hooks/useMergedRefs';
@@ -743,13 +744,15 @@ function CalendarInner({ widget, parameters }: CalendarInnerProps) {
overflow: 'auto',
}}
>
- <TransactionListMobile
- isLoading={false}
- onLoadMore={loadMoreTransactions}
- transactions={allTransactions}
- onOpenTransaction={onOpenTransaction}
- isLoadingMore={false}
- />
+ <DisplayPayeeProvider transactions={allTransactions}>
+ <TransactionListMobile
+ isLoading={false}
+ onLoadMore={loadMoreTransactions}
+ transactions={allTransactions}
+ onOpenTransaction={onOpenTransaction}
+ isLoadingMore={false}
+ />
+ </DisplayPayeeProvider>
</View>
</animated.div>
)}
diff --git a/upcoming-release-notes/6698.md b/upcoming-release-notes/6698.md
new file mode 100644
index 0000000000..ad27374edc
--- /dev/null
+++ b/upcoming-release-notes/6698.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [Copilot]
+---
+
+Fix mobile Calendar crash by adding DisplayPayeeProvider context to TransactionListMobile component.