From 5ebbe17920d1c46d3febdb8f8c893785373e6f96 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:49:28 -0600 Subject: [PATCH] Fix biz label not showing buy info --- scripts/client/business.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/client/business.js b/scripts/client/business.js index 4dba7fa7..357fb633 100644 --- a/scripts/client/business.js +++ b/scripts/client/business.js @@ -64,12 +64,14 @@ function receiveBusinessFromServer(businessId, isDeleted, name, entrancePosition if (businessData.buyPrice > 0) { businessData.labelInfoType = V_PROPLABEL_INFO_BUYBIZ; } else { - if (hasInterior && !hasItems) { + if (hasInterior) { businessData.labelInfoType = V_PROPLABEL_INFO_ENTER; - } else if (!hasInterior && hasItems) { - businessData.labelInfoType = V_PROPLABEL_INFO_BUY; } else { - businessData.labelInfoType = V_PROPLABEL_INFO_NONE; + if (hasItems) { + businessData.labelInfoType = V_PROPLABEL_INFO_BUY; + } else { + businessData.labelInfoType = V_PROPLABEL_INFO_NONE; + } } }