Skip to content

Commit

Permalink
Merge pull request #25468 from pradeepmdk/fix/25451-app-crash-fix
Browse files Browse the repository at this point in the history
Request money - The app crashes when user deleted the request money

(cherry picked from commit 6e80fb4)
  • Loading branch information
mountiny authored and OSBotify committed Aug 18, 2023
1 parent ce1c193 commit 52eb617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MenuItem = React.forwardRef((props, ref) => {
disabled={props.disabled}
ref={ref}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.MENUITEM}
accessibilityLabel={props.title}
accessibilityLabel={props.title ? props.title.toString() : ''}
>
{({pressed}) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, polic
/>
</View>
<MenuItemWithTopDescription
title={formattedTransactionAmount}
title={formattedTransactionAmount ? formattedTransactionAmount.toString() : ''}
shouldShowTitleIcon={isSettled}
titleIcon={Expensicons.Checkmark}
description={description}
Expand Down

0 comments on commit 52eb617

Please sign in to comment.