Fix the default location not appending properly

This commit is contained in:
Rosemary Orchard 2022-04-18 10:15:15 +01:00
parent 99473e34a6
commit cb8898e046

View File

@ -390,7 +390,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
{
var stockLocationName = stockLocation.location_name;
if (stockLocation.location_id == defaultLocationId) {
stockLocationName += +" (" + __t("Default location") + ")";
stockLocationName += " (" + __t("Default location") + ")";
setDefault = 1;
stockAmountAtDefaultLocation += Number.parseFloat(stockLocation.amount);
}