Skip to content

Commit

Permalink
Commit suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Aug 25, 2021
1 parent 78bb3ea commit 3a54b7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/apps/concepts/pages/ViewConceptPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ const ViewConceptPage: React.FC<Props> = ({
retrieveConcept(url);
}, [url, retrieveConcept]);

const fromDictionary = linkedDictionary || dictionaryToAddTo;
const conceptsDictionary = linkedDictionary ? `${linkedDictionary}concepts/` : `${dictionaryToAddTo}concepts/`;
const backUrl = fromDictionary ? conceptsDictionary : `${conceptSource}concepts/`;
const fromDictionary = linkedDictionary ?? dictionaryToAddTo;
const backUrl = `${fromDictionary ? fromDictionary : conceptSource}concepts/`

return (
<>
Expand Down

0 comments on commit 3a54b7d

Please sign in to comment.