Update index.tsx
This commit is contained in:
parent
d9b5da5cf3
commit
8718ca2190
1 changed files with 7 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue