Skip to content

Commit

Permalink
Fix accordion bug on FAQ page - make first tab closed on page load
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkendall04 committed Feb 25, 2024
1 parent 1b2a000 commit 104de10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HomePage/FAQSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const useStyles = makeStyles(theme => ({
}));

function AccordionQA({ index, question, answer }) {
const [expanded, setExpanded] = useState(index === 0);
const [expanded, setExpanded] = useState(index === -1);
const classes = useStyles();
const panelName = 'faqPanel' + index;
const theme = useTheme();
Expand Down

0 comments on commit 104de10

Please sign in to comment.