Skip to content

Commit

Permalink
Show translator and reviewer role in profile (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennchenn authored Feb 18, 2022
1 parent d151d66 commit 2412bf4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ const AssignedStoryTranslationsTable = ({
};

const getRole = (translation: StoryTranslation) => {
if (
userId === translation.translatorId &&
userId === translation.reviewerId
) {
return "Translator, Reviewer";
}
if (userId === translation.translatorId) {
return "Translator";
}
Expand Down

0 comments on commit 2412bf4

Please sign in to comment.