Skip to content

Commit

Permalink
DBC22-2249
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbird committed Jul 23, 2024
1 parent f36665b commit aeedaba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/frontend/src/Components/map/panels/mapPopup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
// React
import React, { useState } from 'react';

Expand Down Expand Up @@ -396,8 +397,6 @@ export function getRegionalPopup(weatherFeature) {
}

export function showAdvisories(advisories) {
const [advisoriesDisplay] = useState(advisories);

return (
<div className="popup popup--advisories" tabIndex={0}>
<div className="popup__title">
Expand All @@ -407,7 +406,7 @@ export function showAdvisories(advisories) {
<p className="name">Advisories</p>
</div>
<div className="popup__content">
<AdvisoriesList advisories={advisoriesDisplay} showDescription={false} showTimestamp={false} showArrow={true} />
<AdvisoriesList advisories={advisories} showDescription={false} showTimestamp={false} showArrow={true} />
</div>
</div>
);
Expand Down

0 comments on commit aeedaba

Please sign in to comment.