Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion convex/reports/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function keptIdentifiers(asked: Identifiers, publication: PublicationSettings):
const ids = structuredClone(asked);
for (const id of SERVICE_IDS) {
const service = ids.services[id];
if (service.mode !== "off" && !connected[id]) throw createError("VALIDATION_ERROR", id === "docid" ? "Set DOCiD's account and its resource, file and funder types under Registration before reports use it." : `Set ${SERVICES[id].name}'s account under Registration before reports use it.`);
if (service.mode !== "off" && !connected[id]) throw createError("VALIDATION_ERROR", `Set ${SERVICES[id].name}'s account under Registration before reports use it.`);
if (!Number.isInteger(service.price) || service.price < 0 || service.price > PRICE_MAX) throw createError("VALIDATION_ERROR", `What ${SERVICES[id].name} adds is a whole number of dollars, from 0 to ${PRICE_MAX}.`);
}
// The copy a Crossref DOI leads to (#1465).
Expand Down
Loading