]> PHS Git Server - phs-admin.git/commitdiff
Adding a server status dialog.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 19:15:34 +0000 (14:15 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 19:15:34 +0000 (14:15 -0500)
src/app/components/VPN/VPNContext.jsx

index 6cad695107eb340a0329fde786725383d1b25593..5c42117ad1076cc825b3d68b01333a1e2a72c2ea 100644 (file)
@@ -18,7 +18,7 @@ export const VPNProvider = ( { children } ) => {
 
   const fetchServerStatus = async () => {
     await VPNService.getServerStatus()
-      .then( res => setServerStatus( res ) )
+      .then( res => setServerStatus( res.active ) )
       .catch( err => setMessage( err ) );
   };