mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update index.tsx
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user