Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahl-Aryan committed Sep 13, 2024
1 parent 1888f16 commit b2510a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion screens/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const Profile: React.FC = () => {
if (token && !attendee) {
dispatch(getAttendee(token));
}
if (token && !qrcode) {
getQRCode(token, setQRCode);
}
}, [token, attendee, dispatch]);

useFocusEffect(() => {
Expand All @@ -61,7 +64,7 @@ const Profile: React.FC = () => {
useEffect(() => {
const interval = setInterval(async () => {await getQRCode(token, setQRCode)}, 18000 + (Math.random() * 5000));
//return () => clearInterval(interval);
}, [token]);
});

const handleLogOut = () => {
console.log("logging out")
Expand Down

0 comments on commit b2510a7

Please sign in to comment.