Skip to content

Commit

Permalink
fix: update date
Browse files Browse the repository at this point in the history
  • Loading branch information
janthijs committed Nov 3, 2023
1 parent 31d0aff commit 1a013ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/client/pages/VergunningDetail/RvvSloterweg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export function getRVVSloterwegLineItems(
isMatured ||
vergunning.decision === RVV_SLOTERWEG_RESULT_UPDATED_WIHT_NEW_KENTEKEN;

let dateInProgress = vergunning.dateWorkflowActive ?? '';

if (!isChangeRequest) {
dateInProgress = vergunning.dateRequest;
}

const lineItems: StatusLineItem[] = [
{
id: 'status-ontvangen',
Expand All @@ -47,11 +53,7 @@ export function getRVVSloterwegLineItems(
lineItems.push({
id: 'status-in-in-behandeling',
status: 'In behandeling',
datePublished: vergunning.dateWorkflowActive
? vergunning.dateWorkflowActive
: !isChangeRequest
? vergunning.dateRequest
: '',
datePublished: dateInProgress,
description: '',
documents: [],
isActive: isInprogress && !isGranted && !isRevoked,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4674,7 +4674,7 @@ exports[`<VergunningDetail /> > RVV Sloterweg > RVV ontheffing Sloterweg (Nieuw/
<time
class="_StatusDate_a12ff2"
>
02 juli 2023
01 juli 2023
</time>
</div>
<div
Expand Down Expand Up @@ -5355,7 +5355,7 @@ exports[`<VergunningDetail /> > RVV Sloterweg > RVV ontheffing Sloterweg (Nieuw/
<time
class="_StatusDate_a12ff2"
>
02 juli 2023
01 juli 2023
</time>
</div>
<div
Expand Down

0 comments on commit 1a013ff

Please sign in to comment.