about summary refs log tree commit diff
path: root/src/view/screens/Search/Search.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/Search/Search.tsx')
-rw-r--r--src/view/screens/Search/Search.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx
index df64cc5aa..4703899a2 100644
--- a/src/view/screens/Search/Search.tsx
+++ b/src/view/screens/Search/Search.tsx
@@ -153,7 +153,7 @@ function SearchScreenSuggestedFollows() {
       getSuggestions()
     } catch (e) {
       logger.error(`SearchScreenSuggestedFollows: failed to get suggestions`, {
-        error: e,
+        message: e,
       })
     }
   }, [currentAccount, setSuggestions, getSuggestedFollowsByActor])
@@ -480,7 +480,7 @@ export function SearchScreen(
           setSearchHistory(JSON.parse(history))
         }
       } catch (e: any) {
-        logger.error('Failed to load search history', e)
+        logger.error('Failed to load search history', {message: e})
       }
     }
 
@@ -558,7 +558,7 @@ export function SearchScreen(
             JSON.stringify(newHistory),
           )
         } catch (e: any) {
-          logger.error('Failed to save search history', e)
+          logger.error('Failed to save search history', {message: e})
         }
       }
     },
@@ -598,7 +598,7 @@ export function SearchScreen(
     setSearchHistory(updatedHistory)
     AsyncStorage.setItem('searchHistory', JSON.stringify(updatedHistory)).catch(
       e => {
-        logger.error('Failed to update search history', e)
+        logger.error('Failed to update search history', {message: e})
       },
     )
   }