Commit 33767876 authored by John Chilton's avatar John Chilton
Browse files

Bug fix: paired_or_unpaired also endswith paired.

parent 514c169e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ export function usePairingSummary<T extends HasName>(props: PropsWithCollectionT
            const numMatchedText = `Auto-matched ${summary.pairs.length} pair(s) of datasets from target datasets.`;
            const numUnmatched = summary.unpaired.length;
            let numUnmatchedText = "";
            if (numUnmatched > 0 && props.collectionType.endsWith("paired")) {
            if (numUnmatched > 0 && props.collectionType.endsWith(":paired")) {
                numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will not be included in the resulting list of pairs.`;
            } else if (numUnmatched > 0) {
                numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will be included in the resulting list as unpaired datasets.`;