diff options
| author | Factiven <[email protected]> | 2023-10-28 22:50:51 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-10-28 22:50:51 +0700 |
| commit | a25282429761ff0670a50fd74f8c24bdb38e728c (patch) | |
| tree | 0cd14840e665f1912842967de7427a31556190e6 /components/home/content.js | |
| parent | Update v4.2.3 (diff) | |
| download | moopa-a25282429761ff0670a50fd74f8c24bdb38e728c.tar.xz moopa-a25282429761ff0670a50fd74f8c24bdb38e728c.zip | |
Update v4.2.4
Diffstat (limited to 'components/home/content.js')
| -rw-r--r-- | components/home/content.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/home/content.js b/components/home/content.js index a380e1f..1cf4c5f 100644 --- a/components/home/content.js +++ b/components/home/content.js @@ -13,6 +13,7 @@ import { ExclamationCircleIcon, PlayIcon } from "@heroicons/react/24/solid"; import { useRouter } from "next/router"; import HistoryOptions from "./content/historyOptions"; import { toast } from "sonner"; +import { truncateImgUrl } from "@/utils/imageUtils"; export default function Content({ ids, @@ -287,7 +288,7 @@ export default function Content({ anime.image || anime.coverImage?.extraLarge || anime.coverImage?.large || - anime?.coverImage || + truncateImgUrl(anime?.coverImage) || "https://cdn.discordapp.com/attachments/986579286397964290/1058415946945003611/gray_pfp.png" } alt={ |