From a374702da2516aef457901956f1c88435642a1e7 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 18 Feb 2023 14:36:09 -0600 Subject: [PATCH] Check if enter key is null for label --- scripts/client/label.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/client/label.js b/scripts/client/label.js index 74e27f88..0a88ecb9 100644 --- a/scripts/client/label.js +++ b/scripts/client/label.js @@ -140,7 +140,7 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, let infoText = ""; switch (labelInfoType) { case V_PROPLABEL_INFO_ENTER: { - if (enterPropertyKey) { + if (enterPropertyKey != null) { infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey))); } else { infoText = getLocaleString("PropertyEnterCommandLabel", "/enter"); @@ -174,7 +174,7 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price, } default: { - if (enterPropertyKey) { + if (enterPropertyKey != null) { infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey))); } else { infoText = getLocaleString("PropertyEnterCommandLabel", "/enter");