Fixed edge case where rigs with no soft inserts or plates is listed on flea, resulting on a sell chance of NaN
This commit is contained in:
parent
014c67b0f2
commit
c8f08ff2bc
@ -527,6 +527,12 @@ export class ItemHelper
|
||||
itemsWithQualityCount++;
|
||||
}
|
||||
|
||||
if (itemsWithQualityCount === 0)
|
||||
{
|
||||
// Can happen when rigs without soft inserts or plates are listed
|
||||
return 1;
|
||||
}
|
||||
|
||||
return Math.min(qualityModifier / itemsWithQualityCount, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user