fix: anonymous user is not clickable (#258)

* fix: anonymous user is not clickable

* fix: link handled for anonymous user everywhere
This commit is contained in:
Mehak Nasir
2022-08-23 13:19:36 +05:00
committed by GitHub
parent 7ee5a8e157
commit 9be71ff92e
7 changed files with 22 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ function AuthorLabel({
</div>
);
return linkToProfile && author && learnersTabEnabled
return linkToProfile && author && learnersTabEnabled && author !== messages.anonymous
? (
<Link
data-testid="learner-posts-link"