From fa54511e77eeccd4be61cdbd36265ece4dd799dc Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 7 Oct 2024 11:24:28 +0200
Subject: Allow partial paste of IP without CIDR octet

---
 app/page.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'app/page.tsx')

diff --git a/app/page.tsx b/app/page.tsx
index 13ce9ee..0a79c03 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -98,12 +98,11 @@ export default function Cidr() {
         return
       }
     })
+    setIp(ip);
 
     if (Number.isNaN(cidr) || cidr < 0 || cidr > 32) {
       return
     }
-
-    setIp(ip);
     setCidr(cidr);
   }
 
-- 
cgit v1.3.1

