mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
WIP preserve local changes before duckie merge
This commit is contained in:
@@ -148,6 +148,10 @@ export class Offer implements IPurchasableOffer
|
||||
|
||||
public get localizationName(): string
|
||||
{
|
||||
const furnitureProduct = this.product;
|
||||
|
||||
if(furnitureProduct?.furnitureData?.name?.length) return furnitureProduct.furnitureData.name;
|
||||
|
||||
const productData = GetProductDataForLocalization(this._localizationId);
|
||||
|
||||
if(productData) return productData.name;
|
||||
@@ -157,6 +161,10 @@ export class Offer implements IPurchasableOffer
|
||||
|
||||
public get localizationDescription(): string
|
||||
{
|
||||
const furnitureProduct = this.product;
|
||||
|
||||
if(furnitureProduct?.furnitureData?.description?.length) return furnitureProduct.furnitureData.description;
|
||||
|
||||
const productData = GetProductDataForLocalization(this._localizationId);
|
||||
|
||||
if(productData) return productData.description;
|
||||
|
||||
Reference in New Issue
Block a user