Skip to content

Commit

Permalink
fix(distribution): only show closed at in detail if inquiry is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Oct 26, 2022
1 parent 950575a commit ed8bb7e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/distribution/addon/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ export default function config(target, property) {
value: inquiry.assignedUsers,
type: "user",
},
{
label: "caluma.distribution.inquiry.closed-at",
value: inquiry.closedAt,
type: "date",
},
...(inquiry.closedAt
? [
{
label: "caluma.distribution.inquiry.closed-at",
value: inquiry.closedAt,
type: "date",
},
]
: []),
],
},
},
Expand Down

0 comments on commit ed8bb7e

Please sign in to comment.