Skip to content

Commit

Permalink
fix: show message inporperly
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Mar 28, 2022
1 parent 001d0d1 commit 0c77e69
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/CaptureMatching/CaptureMatchingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,17 @@ function CaptureMatchingView(props) {
sameTreeHandler={sameTreeHandler}
/>
)}
{!loading && captureImage && candidateImgData && (
//captureImage && treesCount === 0 && (
<Box className={classes.noCandidateBox}>
<Typography variant="h5">
No candidate match found, this capture might be a new tree
</Typography>
</Box>
)}
{!loading &&
captureImage &&
candidateImgData &&
candidateImgData.length === 0 && (
//captureImage && treesCount === 0 && (
<Box className={classes.noCandidateBox}>
<Typography variant="h5">
No candidate match found, this capture might be a new tree
</Typography>
</Box>
)}
</Box>
</Box>
{loading && (
Expand Down

0 comments on commit 0c77e69

Please sign in to comment.