Skip to content

Commit

Permalink
Merge pull request #1773 from getAlby/fix/1403_invoice-date-undefined
Browse files Browse the repository at this point in the history
fix(home): handle undefined settle date #1403
  • Loading branch information
bumi authored May 2, 2023
2 parents 2df5a47 + ed3afec commit e33d353
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 @@ -132,7 +132,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 e33d353

Please sign in to comment.