mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
Merge upstream/main into feature/checkpoint-20260403
This commit is contained in:
@@ -13,6 +13,8 @@ export const GetSubscriptionProductIcon = (id: number) =>
|
||||
|
||||
export const GetOfferNodes = (offerNodes: Map<number, ICatalogNode[]>, offerId: number) =>
|
||||
{
|
||||
if(!offerNodes) return [];
|
||||
|
||||
const nodes = offerNodes.get(offerId);
|
||||
const allowedNodes: ICatalogNode[] = [];
|
||||
|
||||
@@ -20,7 +22,7 @@ export const GetOfferNodes = (offerNodes: Map<number, ICatalogNode[]>, offerId:
|
||||
{
|
||||
for(const node of nodes)
|
||||
{
|
||||
if(!node.isVisible) continue;
|
||||
if(!node || !node.isVisible) continue;
|
||||
|
||||
allowedNodes.push(node);
|
||||
}
|
||||
@@ -31,6 +33,8 @@ export const GetOfferNodes = (offerNodes: Map<number, ICatalogNode[]>, offerId:
|
||||
|
||||
export const FilterCatalogNode = (search: string, furniLines: string[], node: ICatalogNode, nodes: ICatalogNode[]) =>
|
||||
{
|
||||
if(!node) return;
|
||||
|
||||
if(node.isVisible && (node.pageId > 0))
|
||||
{
|
||||
let nodeAdded = false;
|
||||
|
||||
@@ -105,12 +105,12 @@ export class FurnitureOffer implements IPurchasableOffer
|
||||
|
||||
public get localizationName(): string
|
||||
{
|
||||
return this._furniData.name;
|
||||
return this._furniData?.name ?? '';
|
||||
}
|
||||
|
||||
public get localizationDescription(): string
|
||||
{
|
||||
return this._furniData.description;
|
||||
return this._furniData?.description ?? '';
|
||||
}
|
||||
|
||||
public get isLazy(): boolean
|
||||
|
||||
Reference in New Issue
Block a user