fix on shelf
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user