mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36: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',
|
Grocy.Api.Get('stock',
|
||||||
function(result)
|
function(result)
|
||||||
{
|
{
|
||||||
var amountSum = 0;
|
|
||||||
result.forEach(element =>
|
|
||||||
{
|
|
||||||
amountSum += parseInt(element.amount);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||||
{
|
{
|
||||||
$("#info-current-stock").text(__n(result.length, '%s Product', '%s Products'));
|
$("#info-current-stock").text(__n(result.length, '%s Product', '%s Products'));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user