Fixed getBTC()
failing when Production
area cannot be found
This commit is contained in:
parent
92eb0478bd
commit
77b42bfb2f
@ -1138,7 +1138,7 @@ export class HideoutHelper
|
|||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
// Get how many coins were crafted and ready to pick up
|
// 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)
|
if (!craftedCoinCount)
|
||||||
{
|
{
|
||||||
const errorMsg = this.localisationService.getText("hideout-no_bitcoins_to_collect");
|
const errorMsg = this.localisationService.getText("hideout-no_bitcoins_to_collect");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user