Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Dec 10, 2024
1 parent 7c5e24e commit 88caced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function handleActionButtonPress(hash: number, item: TransactionListItemType | R
approveMoneyRequestOnSearch(hash, [item.reportID], transactionID);
return;
case CONST.SEARCH.ACTION_TYPES.SUBMIT: {
const policy = data[`${ONYXKEYS.COLLECTION.POLICY}${item.policyID}`];
const policy = (allSnapshots?.[`${ONYXKEYS.COLLECTION.SNAPSHOT}${hash}`]?.data?.[`${ONYXKEYS.COLLECTION.POLICY}${item.policyID}`] ?? {}) as SearchPolicy;
submitMoneyRequestOnSearch(hash, [item], [policy], transactionID);
return;
}
Expand Down

0 comments on commit 88caced

Please sign in to comment.