mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Remove unused 'amountSum' calculation
This commit is contained in:
parent
b12187b384
commit
e393aab5b4
|
|
@ -214,12 +214,6 @@ function RefreshStatistics()
|
|||
Grocy.Api.Get('stock',
|
||||
function(result)
|
||||
{
|
||||
var amountSum = 0;
|
||||
result.forEach(element =>
|
||||
{
|
||||
amountSum += parseInt(element.amount);
|
||||
});
|
||||
|
||||
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||
{
|
||||
$("#info-current-stock").text(__n(result.length, '%s Product', '%s Products'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user