Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Sep 5, 2024
1 parent 012e568 commit f22701d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/listings/ListingGridCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ListingGridCard = ({
}: ListingGridCardProps) => {
const getFirstLine = (text: string | null) => {
if (!text) return null;
const firstLine = text.split('\n')[0].trim();
const firstLine = text.split("\n")[0].trim();
return firstLine.length > 100 ? `${firstLine.slice(0, 97)}...` : firstLine;
};

Expand Down

0 comments on commit f22701d

Please sign in to comment.