Skip to content

Commit

Permalink
do not show option to start code review if there is no commit files
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavomm19 committed Sep 19, 2024
1 parent 0f1923e commit a257de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/ReviewModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ function ReviewModal({ isExternal, externalFiles, isOpen, isStudent, externalDat
</Box>
</Box>
)}
{(!isAuthenticatedWithRigobot || !noFilesToReview) && hasFilesToReview && !disableRate && (
{(!isAuthenticatedWithRigobot || !noFilesToReview) && hasFilesToReview && !disableRate && contextData?.commitFiles?.fileList?.length > 0 && (
<Flex padding="8px" flexDirection="column" gridGap="16px" background={featuredColor} borderRadius="4px">
<Flex alignItems="center" gridGap="10px">
<Icon icon="code" width="18.5px" height="17px" color="currentColor" />
Expand Down

0 comments on commit a257de9

Please sign in to comment.