aboutsummaryrefslogtreecommitdiff
path: root/components/home/content.js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-10-28 22:50:51 +0700
committerFactiven <[email protected]>2023-10-28 22:50:51 +0700
commita25282429761ff0670a50fd74f8c24bdb38e728c (patch)
tree0cd14840e665f1912842967de7427a31556190e6 /components/home/content.js
parentUpdate v4.2.3 (diff)
downloadmoopa-a25282429761ff0670a50fd74f8c24bdb38e728c.tar.xz
moopa-a25282429761ff0670a50fd74f8c24bdb38e728c.zip
Update v4.2.4
Diffstat (limited to 'components/home/content.js')
-rw-r--r--components/home/content.js3
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={