ソースを参照

Update index.tsx

Stefan Pejcic 1 年間 前
コミット
8718ca2190
1 ファイル変更7 行追加0 行削除
  1. 7 0
      documentation/src/pages/verify/index.tsx

+ 7 - 0
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 (
         <CommonLayout>
             <Head title="LICENSE | OpenPanel">