@welldot/utils

getConditionAnchor

Anchor (first deadline) of a condition: firstdue, else the permit's start date + dueafter. undefined for an undated condition.

getConditionAnchor(permit, condition): string | undefined

Anchor (first deadline) of a condition: first_due, else the permit's start date + due_after. undefined for an undated condition.

Parameters

permit

Permit

condition

PermitCondition

Returns

string | undefined