From 13e2888ae4be027162f037246d36cf316a3072b1 Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Wed, 8 Jul 2020 17:28:20 -0400 Subject: [PATCH] client/js/views: fix pool links for deleted pools Fixes #333 --- client/js/util/views.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/util/views.js b/client/js/util/views.js index 647fb991..38c98a13 100644 --- a/client/js/util/views.js +++ b/client/js/util/views.js @@ -235,7 +235,9 @@ function makeTagLink(name, includeHash, includeCount, tag) { function makePoolLink(id, includeHash, includeCount, pool, name) { const category = pool ? pool.category : "unknown"; - let text = misc.getPrettyName(name ? name : pool.names[0]); + let text = misc.getPrettyName( + name ? name : pool ? pool.names[0] : "unknown" + ); if (includeHash === true) { text = "#" + text; }