Skip to content

Commit

Permalink
chore: fix closures conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Feb 6, 2025
1 parent 5c3de2a commit fd9b140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/rec-resource/Camping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { forwardRef } from 'react';

const Camping = forwardRef<HTMLElement>((_, ref) => {
return (
<section className="anchor-link" id="camping" ref={ref}>
<section id="camping" ref={ref}>
<h2 className="section-heading">Camping</h2>
<p>Placeholder</p>
</section>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/rec-resource/RecResourcePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const RecResourcePage = () => {

const isThingsToDo = recreation_activity && recreation_activity.length > 0;
const isPhotoGallery = photosExample.length > 0;
const isClosures = statusComment && formattedName && statusCode === 2;
const isClosures = statusComment && formattedName && statusCode === '02';

const sectionRefs: React.RefObject<HTMLElement>[] = useMemo(
() =>
Expand All @@ -107,7 +107,7 @@ const RecResourcePage = () => {
campingRef,
isThingsToDo ? thingsToDoRef : null,
contactRef,
].filter((ref) => ref !== null),
].filter((ref) => !!ref),
[description, isClosures, isThingsToDo],
);

Expand Down

0 comments on commit fd9b140

Please sign in to comment.