From ed3afec9b2b24d1bae94489188e3fbf8847658f1 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Mon, 21 Nov 2022 18:19:08 +0100 Subject: [PATCH] fix(home): handle undefined settle date #1403 --- src/app/screens/Home/DefaultView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/screens/Home/DefaultView/index.tsx b/src/app/screens/Home/DefaultView/index.tsx index 4535befd58..078c83abc9 100644 --- a/src/app/screens/Home/DefaultView/index.tsx +++ b/src/app/screens/Home/DefaultView/index.tsx @@ -147,7 +147,7 @@ const DefaultView: FC = (props) => { ...invoice, title: invoice.memo, description: invoice.memo, - date: dayjs(invoice.settleDate).fromNow(), + date: invoice.settleDate ? dayjs(invoice.settleDate).fromNow() : "", })); for (const invoice of invoices) {