Skip to content

Commit

Permalink
Fix flashing policy card
Browse files Browse the repository at this point in the history
  • Loading branch information
codytodonnell authored and dauglyon committed Dec 9, 2024
1 parent a2651c2 commit 35d7616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/account/UseAgreements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const samplePolicies: Policy[] = [
* Content for the Use Agreements tab in the Account page
*/
export const UseAgreements: FC = () => {
const [policies, setPolicies] = useState(samplePolicies);
const currentPolicies = samplePolicies.filter((d) => d.isCurrent === true);
const [policies, setPolicies] = useState(currentPolicies);
const [showExpired, setShowExpired] = useState(false);
const [selectedPolicy, setSelectedPolicy] = useState(policies[0]);
const currentPolicies = samplePolicies.filter((d) => d.isCurrent === true);

const handleChangeExpired = (
event: React.ChangeEvent<HTMLInputElement>,
Expand Down

0 comments on commit 35d7616

Please sign in to comment.