Turn link into span to not refresh page (#15)

Turn link into span to not refresh page (#15)

diff --git a/assets/javascripts/discourse/helpers/category-expert-question-indicator.js b/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
index 6e79475..8aa6014 100644
--- a/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
+++ b/assets/javascripts/discourse/helpers/category-expert-question-indicator.js
@@ -7,7 +7,7 @@ export function categoryExpertQuestionIndicator(topic, currentUser) {
 
   if (
     currentUser.staff ||
-    topic.user_id === currentUser.id ||
+    topic.creator.id === currentUser.id ||
     currentUser.expert_for_category_ids.includes(topic.category_id)
   ) {
     return htmlSafe(
diff --git a/assets/javascripts/discourse/templates/components/endorsement-button.hbs b/assets/javascripts/discourse/templates/components/endorsement-button.hbs
index 7256089..e594222 100644
--- a/assets/javascripts/discourse/templates/components/endorsement-button.hbs
+++ b/assets/javascripts/discourse/templates/components/endorsement-button.hbs
@@ -2,9 +2,9 @@
   {{#if endorsements}}
     <div class="category-expert-existing-endorsements">
       {{i18n "category_experts.existing_endorsements" count=endorsementsCount}}
-      <a href {{action "openEndorsementModal"}} class="endorse-link">
+      <span onclick={{action "openEndorsementModal"}} class="endorse-link">
         {{i18n "category_experts.edit"}}
-      </a>
+      </span>
     </div>
   {{else}}
     {{d-button

GitHub sha: 1f37e5e3

This commit appears in #15 which was approved by romanrizzi. It was merged by markvanlan.