Skip to content

Commit

Permalink
Merge branch 'el-ausspeedruns-patch-horaro'
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Jul 27, 2023
2 parents f370274 + 6aae930 commit 0451a94
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/keystone/admin/util/schedule/export-horaro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ function runnersToTwitter(runners: QueryRuns['event']['runs'][0]['runners'], rac
let numberOfTwitters = 0;

runners.forEach(runner => {
if (runner.twitter) numberOfTwitters++;
formattedRunners.push(runner.twitter ? `[@${runner.username}](https://www.twitter.com/${runner.twitter})` : "N/A")
if (runner.twitter) {
numberOfTwitters++;
}

formattedRunners.push(runner.twitter ? `[@${runner.username}](https://www.twitter.com/${runner.twitter.substring(1)})` : "N/A")
});

if (numberOfTwitters === 0) {
Expand Down Expand Up @@ -255,4 +258,4 @@ export async function exportHoraro(eventShortname: string) {
success: true,
data: horaro,
};
}
}

0 comments on commit 0451a94

Please sign in to comment.