From 8718ca2190ace350267760719bc106d7d33d9166 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Tue, 13 Feb 2024 11:25:22 +0100 Subject: [PATCH] Update index.tsx --- documentation/src/pages/verify/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/src/pages/verify/index.tsx b/documentation/src/pages/verify/index.tsx index 3bd17834..4a6db0ba 100644 --- a/documentation/src/pages/verify/index.tsx +++ b/documentation/src/pages/verify/index.tsx @@ -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 (