From f7b4f4880d98ada8c98e9f009f73274ce9971fb5 Mon Sep 17 00:00:00 2001 From: zfurtak Date: Tue, 1 Oct 2024 11:16:18 +0100 Subject: [PATCH] Fixed errors after merge --- src/hooks/useSearchHighlightAndScroll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useSearchHighlightAndScroll.ts b/src/hooks/useSearchHighlightAndScroll.ts index 12228bbe7b86..95a953139ebe 100644 --- a/src/hooks/useSearchHighlightAndScroll.ts +++ b/src/hooks/useSearchHighlightAndScroll.ts @@ -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);