From c0dfff76b096806a08eec9c25d4e6492cdc1869e Mon Sep 17 00:00:00 2001 From: Kitteh Date: Sun, 18 Apr 2021 12:00:26 +0100 Subject: [PATCH] Solve bug on KeyValueView when not on cubbyhole. --- src/pages/KeyValue/KeyValueView.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/KeyValue/KeyValueView.js b/src/pages/KeyValue/KeyValueView.js index 31ec46c..6918615 100644 --- a/src/pages/KeyValue/KeyValueView.js +++ b/src/pages/KeyValue/KeyValueView.js @@ -20,11 +20,12 @@ export class KeyValueViewPage extends Page { setTitleElement(pageState); - pageContent.appendChild(makeElement({ - tag: "p", - condition: pageState.currentMountType == "cubbyhole", - text: "In cubbyhole, secrets can be stored as long as the lease of your token is valid. They will be deleted when lease is expired and can only be viewed by your current token.", - })); + if (pageState.currentMountType == "cubbyhole") { + pageContent.appendChild(makeElement({ + tag: "p", + text: "In cubbyhole, secrets can be stored as long as the lease of your token is valid. They will be deleted when lease is expired and can only be viewed by your current token.", + })); + } let newButton = makeElement({ tag: "button",