Skip to content

Commit

Permalink
Merge pull request #56917 from nkdengineer/fix/56906
Browse files Browse the repository at this point in the history
[CP staging] fix: app crashes when submitting the track distance to the workspace

(cherry picked from commit 2aef183)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Feb 17, 2025
1 parent 7ca9506 commit 4b2698a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b2698a

Please sign in to comment.