diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/views/Chores/MyChores.jsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/views/Chores/MyChores.jsx b/src/views/Chores/MyChores.jsx index da74918..cd90942 100644 --- a/src/views/Chores/MyChores.jsx +++ b/src/views/Chores/MyChores.jsx @@ -298,12 +298,14 @@ const MyChores = () => { }} onChange={handleSearchChange} endDecorator={ - <CancelRounded - onClick={() => { - setSearchTerm('') - setFilteredChores(chores) - }} - /> + searchTerm && ( + <CancelRounded + onClick={() => { + setSearchTerm('') + setFilteredChores(chores) + }} + /> + ) } /> </Box> |