pangea-lib 1.8.5 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export function displayValue(value: number, maximumFractionDigits: number) {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export function getAmountToDisplay(amount: number, significantDigits: number, coinName: string, withCoinName = true) {
|
|
10
|
-
let amountToDisplay =
|
|
10
|
+
let amountToDisplay = displayValue(amount, significantDigits);
|
|
11
11
|
if (withCoinName) amountToDisplay = amountToDisplay += ` ${coinName}`;
|
|
12
12
|
return amountToDisplay;
|
|
13
13
|
}
|
|
@@ -31,7 +31,7 @@ export function copyAvailableFields(destinationObj?: any, originObj?: any) {
|
|
|
31
31
|
for (const key in originObj) {
|
|
32
32
|
if (originObj.hasOwnProperty(key) && destinationObj.hasOwnProperty(key)) {
|
|
33
33
|
if (typeof originObj[key] === 'object' && originObj[key] !== null) {
|
|
34
|
-
|
|
34
|
+
copyAvailableFields(destinationObj[key], originObj[key]);
|
|
35
35
|
} else {
|
|
36
36
|
destinationObj[key] = originObj[key];
|
|
37
37
|
}
|