FIx getProfileTraderPurchase()
failing when trader doesnt exist in profile
This commit is contained in:
parent
80b549a2d5
commit
af50cb7869
@ -62,7 +62,13 @@ export class TraderPurchasePersisterService
|
||||
return null;
|
||||
}
|
||||
|
||||
return profile.traderPurchases[traderId][assortId];
|
||||
const traderPurchases = profile.traderPurchases[traderId];
|
||||
if (!traderPurchases)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return traderPurchases[assortId];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user