mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: use and
This commit is contained in:
1 parent
d8a5f57787
commit
eaa67ba1fe
1 file changed
+7
-4
@@ -11,10 +11,13 @@ export function deltaTankStats(
|
||||
) {
|
||||
const bTanks = Object.keys(b);
|
||||
const changedTanks = bTanks.filter((id) => {
|
||||
return time === undefined
|
||||
? a[id as unknown as number]?.all.battles !==
|
||||
b[id as unknown as number].all.battles
|
||||
: b[id as unknown as number].last_battle_time > time;
|
||||
return (
|
||||
a[id as unknown as number]?.all.battles !==
|
||||
b[id as unknown as number].all.battles &&
|
||||
(time === undefined
|
||||
? true
|
||||
: b[id as unknown as number].last_battle_time > time)
|
||||
);
|
||||
});
|
||||
const diff = changedTanks.map((id) => {
|
||||
const aTank = a[id as unknown as number] ?? emptyIndividualTankStats;
|
||||
|
||||
Reference in new issue
Block a user