From 4b2698a37be1fd01bdce79230aa1de9f34726da7 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Mon, 17 Feb 2025 08:00:42 +0100 Subject: [PATCH] Merge pull request #56917 from nkdengineer/fix/56906 [CP staging] fix: app crashes when submitting the track distance to the workspace (cherry picked from commit 2aef183180b73c4c3158fd875506315ef0fd762e) (CP triggered by mountiny) --- src/components/SelectionList/Search/TransactionListItemRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SelectionList/Search/TransactionListItemRow.tsx b/src/components/SelectionList/Search/TransactionListItemRow.tsx index 4b424246ea49..c149c29b7af5 100644 --- a/src/components/SelectionList/Search/TransactionListItemRow.tsx +++ b/src/components/SelectionList/Search/TransactionListItemRow.tsx @@ -91,7 +91,7 @@ function ReceiptCell({transactionItem}: TransactionCellProps) { const backgroundStyles = transactionItem.isSelected ? StyleUtils.getBackgroundColorStyle(theme.buttonHoveredBG) : StyleUtils.getBackgroundColorStyle(theme.border); let source = transactionItem?.receipt?.source ?? ''; - if (source) { + if (source && typeof source === 'string') { const filename = getFileName(source); const receiptURIs = getThumbnailAndImageURIs(transactionItem, null, filename); const isReceiptPDF = Str.isPDF(filename);