Skip to content

Commit

Permalink
Fixed errors after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
zfurtak committed Oct 1, 2024
1 parent c0d03fb commit f7b4f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSearchHighlightAndScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function useSearchHighlightAndScroll({searchResults, transactions, previousTrans
return;
}

const newTransactionID = newTransactionIDs[0];
const newTransactionID = newTransactionIDs.at(0) ?? '';
const newTransactionKey = `${ONYXKEYS.COLLECTION.TRANSACTION}${newTransactionID}`;

setNewSearchResultKey(newTransactionKey);
Expand Down

0 comments on commit f7b4f48

Please sign in to comment.