mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
hide when zero
This commit is contained in:
parent
01585b7825
commit
dd725e2d04
1 changed files with 2 additions and 2 deletions
|
|
@ -27,11 +27,11 @@ block content
|
|||
+pageTab("Details", true)
|
||||
|
||||
if (getblockchaininfo.warnings)
|
||||
if (Array.isArray(getblockchaininfo.warnings) && getblockchaininfo.warnings.length > -1)
|
||||
if (Array.isArray(getblockchaininfo.warnings) && getblockchaininfo.warnings.length > 0)
|
||||
+contentSection("Active Warnings")
|
||||
pre
|
||||
code.json(data-lang="json") #{JSON.stringify(getblockchaininfo.warnings, null, 4)}
|
||||
|
||||
|
||||
else if (typeof getblockchaininfo.warnings === "string" && getblockchaininfo.warnings.trim().length > 0)
|
||||
+contentSection("Active Warnings")
|
||||
span.text-danger #{getblockchaininfo.warnings}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue