Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eatski committed Aug 12, 2024
1 parent 8f01fb2 commit 494e04a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/verification/VerificationIframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ const getNow = () => new Date().getTime().toString();
export const useVerificationIframe = () => {
const [verificationId, setVerificationId] = useState(getNow);
useEffect(() => {
const id = setInterval(
() => {
const now = getNow();
setVerificationId(now);
},
1000 * 60 * 5,
);
const id = setInterval(() => {
const now = getNow();
setVerificationId(now);
}, 1000);
}, []);

return {
Expand Down

0 comments on commit 494e04a

Please sign in to comment.