chore: bump dogma-engine to v4 and update code accordingly (#95)
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@eveshipfit/data": "^9",
|
||||
"@eveshipfit/dogma-engine": "^3",
|
||||
"@eveshipfit/dogma-engine": "^4",
|
||||
"react": "^18",
|
||||
"react-dom": "^18"
|
||||
},
|
||||
|
||||
@@ -27,7 +27,7 @@ export const ShipStatistics = () => {
|
||||
const attributeId = eveData.attributeMapping?.capacitorDepletesIn || 0;
|
||||
const capacitorDepletesIn = shipSnapshot.hull?.attributes.get(attributeId)?.value;
|
||||
|
||||
if (capacitorDepletesIn !== undefined && capacitorDepletesIn > 0) {
|
||||
if (capacitorDepletesIn !== undefined && capacitorDepletesIn >= 0) {
|
||||
const hours = Math.floor(capacitorDepletesIn / 3600);
|
||||
const minutes = Math.floor((capacitorDepletesIn % 3600) / 60);
|
||||
const seconds = Math.floor(capacitorDepletesIn % 60);
|
||||
|
||||
Reference in New Issue
Block a user