Skip to content

Commit

Permalink
Update pages/browse/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaevn authored Feb 2, 2024
1 parent 43da315 commit b4ca394
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pages/browse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ const Browse = ({ session }) => {
)
}

// const truncateDescription = (desc = '', maxLength, isOpen) => {
// if (desc.length <= maxLength || isOpen) return { truncated: desc, cutOffIndex: desc.length }
// const lastSpaceIndex = desc.substring(0, maxLength).lastIndexOf(' ')
// const ellipsis = isOpen ? '' : '...'
// return { truncated: desc.slice(0, lastSpaceIndex) + ellipsis, cutOffIndex: lastSpaceIndex }
// }

return (
<div className='container'>
<SearchBar onSubmit={handleOnSubmit} initialValue={existingQuery} />
Expand Down

0 comments on commit b4ca394

Please sign in to comment.