Skip to content

Commit

Permalink
remove unnecessary null fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-mikolajczak committed Oct 2, 2024
1 parent f4cf111 commit 11a38cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function ReportActionItem({
const [userWallet] = useOnyx(ONYXKEYS.USER_WALLET);
const [linkedTransactionRouteError] = useOnyx(
`${ONYXKEYS.COLLECTION.TRANSACTION}${ReportActionsUtils.isMoneyRequestAction(action) ? ReportActionsUtils.getOriginalMessage(action)?.IOUTransactionID ?? -1 : -1}`,
{selector: (transaction) => transaction?.errorFields?.route ?? null},
{selector: (transaction) => transaction?.errorFields?.route},
);
const theme = useTheme();
const styles = useThemeStyles();
Expand Down

0 comments on commit 11a38cd

Please sign in to comment.