Fixed getBTC()
failing when Production
area cannot be found
(cherry picked from commit 77b42bfb2f
)
This commit is contained in:
parent
28fb1a2fc9
commit
2ea6b658fd
@ -1138,7 +1138,7 @@ export class HideoutHelper
|
||||
): void
|
||||
{
|
||||
// Get how many coins were crafted and ready to pick up
|
||||
const craftedCoinCount = pmcData.Hideout.Production[HideoutHelper.bitcoinFarm].Products.length;
|
||||
const craftedCoinCount = pmcData.Hideout.Production[HideoutHelper.bitcoinFarm]?.Products?.length ?? 0;
|
||||
if (!craftedCoinCount)
|
||||
{
|
||||
const errorMsg = this.localisationService.getText("hideout-no_bitcoins_to_collect");
|
||||
|
Loading…
Reference in New Issue
Block a user