Skip to content

Commit 6ff3961

Browse files
Omit rawQuery when recent search skips amount conversion
When a recent search is selected, amounts are already in backend format (cents). Passing the same value as rawQuery caused getSanitizedRawFilters to convert it again, doubling the amount (e.g. 123 → 12300). Only pass rawQuery when there is user-typed input to preserve — recent searches have no user-typed input since their values come from storage. Co-authored-by: Sahil <thesahindia@users.noreply.github.com>
1 parent 147633e commit 6ff3961

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Search/SearchPageHeader/useSearchPageInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function useSearchPageInput({queryJSON, onSearch, onSubmit}: UseSearchPageInputP
129129
Navigation.navigate(
130130
ROUTES.SEARCH_ROOT.getRoute({
131131
query: updatedQuery,
132-
rawQuery: queryWithSubstitutions,
132+
rawQuery: shouldSkipAmountConversion ? undefined : queryWithSubstitutions,
133133
}),
134134
);
135135
onSubmit();

0 commit comments

Comments
 (0)