client/views: better pool name fallback

This commit is contained in:
Eva 2023-05-26 10:06:28 +02:00
parent a16bb198ab
commit 8d971234a2

View file

@ -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;