diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx index 93884f8116f7..998b26256cd7 100644 --- a/src/components/Search/index.tsx +++ b/src/components/Search/index.tsx @@ -1,5 +1,6 @@ import {findFocusedRoute, useFocusEffect, useIsFocused, useNavigation} from '@react-navigation/native'; import * as Sentry from '@sentry/react-native'; +import {deepEqual} from 'fast-equals'; import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; import type {NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle} from 'react-native'; import {View} from 'react-native'; @@ -926,6 +927,10 @@ function Search({ return; } + if (deepEqual(newTransactionList, selectedTransactions)) { + return; + } + setSelectedTransactions(newTransactionList, filteredData); isRefreshingSelection.current = true;