Skip to content

Commit dee1c46

Browse files
chore: update passport info interval
1 parent 1b5c871 commit dee1c46

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ function App() {
9090
};
9191

9292
init();
93+
94+
const interval = setInterval(handlePassport, 15000);
95+
96+
return () => clearInterval(interval);
9397
}, []);
9498

9599
useEffect(() => {

src/components/PassportInfo/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const PassportInfo = ({ passportInfo, selectedValue, onChange }: any) => {
2020
color: "#9FBFE5FE",
2121
},
2222
}}
23-
2423
/>
2524
<p style={{ fontSize: '12px', color: '#B1B1B2', textAlign: 'left', fontWeight: 700, paddingTop: 1 }}>{getPassportTitle(passportInfo)} Passport</p>
2625
<p style={{ fontSize: '10px', color: '#B1B1B2', textAlign: 'right', fontWeight: 500, paddingBottom: 1 }}>{getExpirationDate(passportInfo)}</p>

src/components/SelectActivePassportPopup/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const SelectActivePassportPopup = ({ newPassport }: any) => {
2222

2323
await changeActiveNFT('mainnet', newPassport.nftID)
2424

25+
await new Promise((resolve) => setTimeout(resolve, 6000));
26+
2527
setIsSelectPassportPopupOpen(false);
2628
} catch (ex) {
2729
console.log(ex)

0 commit comments

Comments
 (0)