fuzzyworld

north-star / commit

disable map links for some participants

89b0c38fcf128d5ddce247ad02d55055fc881859 · Pavel Safronov · 2026-03-14 23:58:09 -0700 · parents f782e1f9ae81

disable map links for some participants
 src/app.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app.js b/src/app.js
index 2b0dbc6..59afd82 100644
--- a/src/app.js
+++ b/src/app.js
@@ -545,6 +545,10 @@ const getParticipantDefaultRank = (participantId) => {
     return 2;
 };
 
+const shouldShowMapLink = (participantId) => {
+    return participantId !== NORTH_MARKER_ID && participantId !== GUARDIAN_ANGEL_ID;
+};
+
 const ensureParticipantOrder = (participantsToRender) => {
     const ids = participantsToRender.map(participant => participant.id);
     const idSet = new Set(ids);
@@ -929,7 +933,9 @@ const renderParticipantControls = () => {
         mapLink.setAttribute('aria-label', `Open ${participant.name} in Google Maps`);
 
         row.appendChild(checkbox);
-        nameWrapper.appendChild(mapLink);
+        if (shouldShowMapLink(participant.id)) {
+            nameWrapper.appendChild(mapLink);
+        }
         row.appendChild(nameWrapper);
 
         const orderControls = document.createElement('div');