Skip to content

Commit 3376787

Browse files
committed
Bug fix: paired_or_unpaired also endswith paired.
1 parent 514c169 commit 3376787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/Collections/common/usePairingSummary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function usePairingSummary<T extends HasName>(props: PropsWithCollectionT
1717
const numMatchedText = `Auto-matched ${summary.pairs.length} pair(s) of datasets from target datasets.`;
1818
const numUnmatched = summary.unpaired.length;
1919
let numUnmatchedText = "";
20-
if (numUnmatched > 0 && props.collectionType.endsWith("paired")) {
20+
if (numUnmatched > 0 && props.collectionType.endsWith(":paired")) {
2121
numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will not be included in the resulting list of pairs.`;
2222
} else if (numUnmatched > 0) {
2323
numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will be included in the resulting list as unpaired datasets.`;

0 commit comments

Comments
 (0)