Skip to content

Commit

Permalink
add a thing to catch rais with no requested date
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f committed Nov 10, 2023
1 parent b8e7f26 commit 8469bdf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/services/ui/src/components/RaiList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ export const RaiList = (data: OsMainSourceItem) => {
{sortedKeys.map((key, i) => (
<Accordion key={i} type="multiple" defaultValue={["item-0"]}>
<AccordionItem value={`item-${i}`}>
<AccordionTrigger>{`Requested on ${format(
new Date(data.rais[key].requestedDate),
"EEE, MMM d yyyy, h:mm:ss a"
)}`}</AccordionTrigger>
<AccordionTrigger>{`Requested on ${
data.rais[key].requestedDate
? format(
new Date(data.rais[key].requestedDate),
"EEE, MMM d yyyy, h:mm:ss a"
)
: "Unknown"
}`}</AccordionTrigger>
<AccordionContent>
<div className="ml-8">
<h3 className="text-xl font-semibold mb-2">
Expand Down

0 comments on commit 8469bdf

Please sign in to comment.