From dd75df01eb7c03d8945a8bd20ed231a66bd88b8f Mon Sep 17 00:00:00 2001 From: zyachel Date: Thu, 1 Dec 2022 22:29:28 +0530 Subject: [PATCH] fix(title): fix site crash production status of titles is sometimes null. this commit accounts for that and prevents site from crashing. https://github.com/zyachel/libremdb/issues/22 --- src/components/title/Basic.tsx | 2 +- src/interfaces/misc/rawTitle.ts | 2 +- src/utils/cleaners/title.ts | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/title/Basic.tsx b/src/components/title/Basic.tsx index 9627e6d..dd91455 100644 --- a/src/components/title/Basic.tsx +++ b/src/components/title/Basic.tsx @@ -58,7 +58,7 @@ const Basic = ({ data, className }: Props) => { {data.title}