Skip to content

Commit

Permalink
fix(home): handle undefined settle date #1403
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Nov 21, 2022
1 parent ce59b73 commit ed3afec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/screens/Home/DefaultView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const DefaultView: FC<Props> = (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) {
Expand Down

0 comments on commit ed3afec

Please sign in to comment.