@barchart/portfolio-api-common 9.1.0 → 9.1.1

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.
@@ -878,6 +878,10 @@ module.exports = (() => {
878
878
  if (desired === Currency.GBX) {
879
879
  desired = Currency.GBP;
880
880
 
881
+ if (is.number(value)) {
882
+ translated = new Decimal(value);
883
+ }
884
+
881
885
  if (translated !== null) {
882
886
  translated = translated.multiply(0.01);
883
887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "description": "Common JavaScript code used by Barchart's Portfolio Service",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",