Skip to content

Commit

Permalink
Merge pull request #5423 from Aminehassou/fixArticleFinderAlertDisplay
Browse files Browse the repository at this point in the history
Removed unnecessary display of alert button in article finder's preview article UI

Fixes #5422
  • Loading branch information
ragesoss committed Jun 6, 2023
2 parents a83b550 + 1528feb commit 885b8d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ const ArticleViewer = ({ showOnMount, users, showArticleFinder, showButtonLabel,
}
<CloseButton hideArticle={hideArticle} />
{
current_user.isAdvancedRole && (
current_user.isAdvancedRole && !showArticleFinder ? (
<BadWorkAlertButton showBadArticleAlert={() => setShowBadArticleAlert(true)} /> // Passed as a function for onclick
)
) : ''
}
</p>
</div>
Expand Down

0 comments on commit 885b8d8

Please sign in to comment.