tso-data-models
Advanced tools
Comparing version 1.0.122 to 1.0.123
@@ -24,5 +24,7 @@ "use strict"; | ||
AssetSubmission.prototype.formatPrice = function () { | ||
var _a; | ||
console.log('111 '); | ||
var str = this.price.toString(); | ||
var numArray = str.split('.'); | ||
console.log(this); | ||
var str = (_a = this.price) === null || _a === void 0 ? void 0 : _a.toString(); | ||
var numArray = str === null || str === void 0 ? void 0 : str.split('.'); | ||
var beforeDecimal = numArray[0]; | ||
@@ -29,0 +31,0 @@ var afterDecimal = numArray[1]; |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.122", | ||
"version": "1.0.123", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,4 +34,5 @@ import { BigNumber, ethers } from "ethers"; | ||
console.log('111 ') | ||
const str = this.price.toString(); | ||
const numArray = str.split('.'); | ||
console.log(this) | ||
const str = this.price?.toString(); | ||
const numArray = str?.split('.'); | ||
const beforeDecimal = numArray[0]; | ||
@@ -38,0 +39,0 @@ const afterDecimal = numArray[1]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
147143
2175