From f611b722345a21e35396d79ab4ad3fd5a019c7f4 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Tue, 13 Sep 2022 10:57:14 -0600 Subject: [PATCH] Added logging --- front/dashboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/dashboard.js b/front/dashboard.js index 39b7d9b..7b194b7 100644 --- a/front/dashboard.js +++ b/front/dashboard.js @@ -19,6 +19,7 @@ function PeerList() { // Initial loading self.getUser = async () => { + console.log(`Getting user...`) let res; try { res = await fetch(`${API_URL}/`) } catch (err) { @@ -34,6 +35,7 @@ function PeerList() { console.error('Failed to parse JSON!') if (err) console.error(err) } + console.log(user) self.peers( user.peers.sort( (a,b) => a.ipv4.split('.')[3] - b.ipv4.split('.')[3])