@dhyasama/totem-models 9.104.0 → 9.105.0

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.
@@ -865,9 +865,9 @@ module.exports = function(mongoose, config) {
865
865
 
866
866
  const self = this;
867
867
 
868
- if (self.ipo.ticker) return 'IPO';
869
- else if (self.acquired.by || self.acquired.on) return 'Acquired';
870
- else if (self.merged.with || self.merged.on) return 'Merged';
868
+ if (self.ipo && self.ipo.ticker) return 'IPO';
869
+ else if (self.acquired && (self.acquired.by || self.acquired.on)) return 'Acquired';
870
+ else if (self.merged && (self.merged.with || self.merged.on)) return 'Merged';
871
871
  else if (self.shutdown) return 'Shutdown';
872
872
  else if (self.inactive) return 'Inactive';
873
873
  else return 'Active';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.104.0",
3
+ "version": "9.105.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",