You've already forked tf2wikipricing
fix: unhandled state where remote server returns null for given SKU price(s)
This commit is contained in:
@@ -24,7 +24,7 @@ export function createPriceRow(qualityName: string, data: ItemPriceData, keyPric
|
||||
const priceLink = document.createElement("span");
|
||||
let priceString: string = ''
|
||||
|
||||
if(data) {
|
||||
if(data && data.keys != null && data.metal != null) {
|
||||
const gamePrice = formatPrice(data.keys, data.metal, keyPrice.metal, locale).trim()
|
||||
const realPriceUSD = convertTF2PriceToUSD(data.keys, data.metal, keyPrice.metal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user