client/views: better pool name fallback
This commit is contained in:
parent
a16bb198ab
commit
8d971234a2
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ function makeTagLink(name, includeHash, includeCount, tag) {
|
|||
function makePoolLink(id, includeHash, includeCount, pool, name) {
|
||||
const category = pool && pool.category ? pool.category : "unknown";
|
||||
let text = misc.getPrettyName(
|
||||
name ? name : pool && pool.names ? pool.names[0] : "unknown"
|
||||
name ? name : pool && pool.names ? pool.names[0] : "pool " + id
|
||||
);
|
||||
if (includeHash === true) {
|
||||
text = "#" + text;
|
||||
|
|
Loading…
Reference in a new issue