Skip to content

Commit

Permalink
tweak: comment to indicate need for fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahpurcell committed Oct 28, 2024
1 parent 989c17c commit 6d67a15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/src/components/detours/diversionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ export const DiversionPage = ({
directions={
editedDirections
? parseIntoDirectionsList(editedDirections)
: extendedDirections
: // Include fallback if editedDirections was not initialized on an older detour
extendedDirections
}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
Expand Down Expand Up @@ -389,7 +390,8 @@ export const DiversionPage = ({
directions={
editedDirections
? parseIntoDirectionsList(editedDirections)
: extendedDirections
: // Include fallback if editedDirections was not initialized on an older detour
extendedDirections
}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
Expand Down

0 comments on commit 6d67a15

Please sign in to comment.