From 594de4668248bac9b744e6882329183c95ac339c Mon Sep 17 00:00:00 2001
From: Leon Jiang <35908040+leonyjiang@users.noreply.github.com>
Date: Wed, 10 Mar 2021 18:15:26 -0500
Subject: Add utils, fix ordering of recent searches

---
 src/components/search/SearchResultCell.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/search/SearchResultCell.tsx')

diff --git a/src/components/search/SearchResultCell.tsx b/src/components/search/SearchResultCell.tsx
index 5cba6d2f..f274bfb9 100644
--- a/src/components/search/SearchResultCell.tsx
+++ b/src/components/search/SearchResultCell.tsx
@@ -14,11 +14,11 @@ import {
 } from '../../types';
 import {normalize, SCREEN_WIDTH} from '../../utils';
 import {
-  addUserToRecentlyViewed,
   checkIfUserIsBlocked,
   defaultUserProfile,
   fetchUserX,
   userXInStore,
+  addUserToRecentlySearched,
   addCategoryToRecentlySearched,
 } from '../../utils/users';
 
@@ -74,7 +74,7 @@ const SearchResultsCell: React.FC<SearchResults> = ({
         return;
       }
 
-      addUserToRecentlyViewed({
+      addUserToRecentlySearched({
         id,
         first_name,
         last_name,
-- 
cgit v1.2.3-70-g09d2

