Check if enter key is null for label
This commit is contained in:
@@ -140,7 +140,7 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
|
|||||||
let infoText = "";
|
let infoText = "";
|
||||||
switch (labelInfoType) {
|
switch (labelInfoType) {
|
||||||
case V_PROPLABEL_INFO_ENTER: {
|
case V_PROPLABEL_INFO_ENTER: {
|
||||||
if (enterPropertyKey) {
|
if (enterPropertyKey != null) {
|
||||||
infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey)));
|
infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey)));
|
||||||
} else {
|
} else {
|
||||||
infoText = getLocaleString("PropertyEnterCommandLabel", "/enter");
|
infoText = getLocaleString("PropertyEnterCommandLabel", "/enter");
|
||||||
@@ -174,7 +174,7 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
|
|||||||
}
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
if (enterPropertyKey) {
|
if (enterPropertyKey != null) {
|
||||||
infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey)));
|
infoText = getLocaleString("PropertyEnterKeyPressLabel", toUpperCase(getKeyNameFromId(enterPropertyKey)));
|
||||||
} else {
|
} else {
|
||||||
infoText = getLocaleString("PropertyEnterCommandLabel", "/enter");
|
infoText = getLocaleString("PropertyEnterCommandLabel", "/enter");
|
||||||
|
|||||||
Reference in New Issue
Block a user