Skip to content

Commit

Permalink
Add optional for split in random anime ENg
Browse files Browse the repository at this point in the history
  • Loading branch information
huy232 committed Oct 21, 2023
1 parent e6b125b commit a20d995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Content/RandomAnimeENGComp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function RandomAnimeENGComp({ randomAnime }) {
const description = randomAnime.description?.replace(/<[br]+>/g, "")

// Check if the text is longer than 5 lines
const isLongText = description.split("\n").length > 5
const isLongText = description?.split("\n")?.length > 5
return (
<>
<h1 className="font-black ml-6 mr-6 mt-2 border-b-4 border-white text-rose-500 max-sm:text-center">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Shared/HeaderENG/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function HeaderENG() {
? `Search anime...`
: `Search manga...`
}
className="search-navbar w-[150px] sm:w-full text-white max-sm:w-full bg-[#00000099] px-[2px] text-sm rounded-md"
className="search-navbar w-[150px] text-white max-sm:w-full bg-[#00000099] px-[2px] text-sm rounded-md"
onChange={handleChange}
onKeyPress={(e) => {
handleKeypress(e)
Expand Down

1 comment on commit a20d995

@vercel
Copy link

@vercel vercel bot commented on a20d995 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mirai – ./

mirai-git-main-huy8856.vercel.app
unime.vercel.app
mirai-huy8856.vercel.app

Please sign in to comment.