fix on shelf

This commit is contained in:
2026-08-31 15:50:59 +05:30
parent b4e77fd6ea
commit 55ed13c284
6 changed files with 167 additions and 9 deletions

View File

@@ -417,9 +417,17 @@ function ShelveAction({
skipped: result.skipped,
});
setNote(
result.skipped > 0
? `${result.shelved} on the shelf. ${result.skipped} were left out — the sheet did not price them.`
: `${result.shelved} priced, shelved and stocked.`,
[
`${result.shelved} priced, shelved and stocked.`,
result.skipped > 0 ? `${result.skipped} were left out.` : "",
// Named, because "left out" alone sends someone looking at their
// spreadsheet for a problem that is in the catalogue.
result.failedBrands.length > 0
? `The catalogue could not be read for: ${result.failedBrands.join(", ")}.`
: "",
]
.filter(Boolean)
.join(" "),
);
onDone();
} catch (cause) {