Skip to content

Commit 9bcc3ab

Browse files
committed
make candidate a guest
1 parent 3553915 commit 9bcc3ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pages/index/report.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const READ_TOKEN = "dZtMfEuzhzUS0YATh0pOZfBAdOYlhowE";
3535
loading: true,
3636
error: "",
3737
report: null,
38+
blacklist: ["Bounteer Production", ""], // user blacklist used to show "Guest" as candidate
3839

3940
hasId() {
4041
return !!this.reportId;
@@ -105,14 +106,15 @@ const READ_TOKEN = "dZtMfEuzhzUS0YATh0pOZfBAdOYlhowE";
105106
const iso = this.report?.date_created;
106107
return iso ? fmtMinutes(iso) : "—";
107108
},
108-
109109
candidateName() {
110110
const c = this.report?.user_created;
111111
if (!c) return "—";
112112
const first = (c.first_name || "").trim();
113113
const last = (c.last_name || "").trim();
114-
const combined = [first, last].filter(Boolean).join(" ");
115-
return combined || "—";
114+
const combined = [first, last].filter(Boolean).join(" ") || "—";
115+
116+
// 👇 override with "Guest" if blacklisted
117+
return this.blacklist.includes(combined) ? "Guest" : combined;
116118
},
117119
roleName() {
118120
return this.report?.submission?.job_description?.role_name ?? "—";

0 commit comments

Comments
 (0)