Skip to content

Commit

Permalink
fixed very minor bug where the first page wont display
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyGarciaa committed Oct 26, 2024
1 parent dc43a08 commit db5b1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/LegalRights/VideoPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function VideoPage(testProp: any) {
video_id: 'Section Title 1',
},
]);
const [index, setIndex] = useState(0); // index of current page in full array of pages
const [index, setIndex] = useState(Infinity); // index of current page in full array of pages; have to set to infinite or else if the first page (actually index 0) is pressed, the videopage wont update
const [language, setLanguage] = useState('english'); // which language associated to array of pages

const videoLinkRef = useRef(
Expand Down

0 comments on commit db5b1c9

Please sign in to comment.