Update index.tsx

This commit is contained in:
Stefan Pejcic 2024-02-13 11:25:22 +01:00 committed by GitHub
parent d9b5da5cf3
commit 8718ca2190
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,13 @@ const Verify: React.FC = () => {
}
}, []); // Empty dependency array ensures it only runs once on component mount
useEffect(() => {
// Additional effect to check the license when ipAddress changes (e.g., due to user input)
if (ipAddress) {
handleCheckLicense();
}
}, [ipAddress]); // Re-run the effect whenever ipAddress changes
return (
<CommonLayout>
<Head title="LICENSE | OpenPanel">