Skip to content

Commit

Permalink
fix: unable to use {callsign} in template (closes #1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 16, 2023
1 parent 7fb4690 commit 6a2ea7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { MiscCadSettings } from "@snailycad/types";

export const CALLSIGN_TEMPLATE_VARIABLES = (
<span key="CALLSIGN_TEMPLATE_VARIABLES">
<code>{"{department}"}</code>,<code>{"{division}"}</code>, <code>{"{callsign}"}</code>,{" "}
<code>{"{department}"}</code>,<code>{"{division}"}</code>, <code>{"{callsign1}"}</code>,{" "}
<code>{"{callsign2}"}</code>
</span>
);
Expand Down
1 change: 1 addition & 0 deletions packages/utils/src/callsign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function generateCallsign(unit: Unit, template: string | null) {

const replacers = {
department: unit.department?.callsign,
callsign: unit.callsign,
callsign1: unit.callsign,
callsign2: unit.callsign2,
division: division?.callsign,
Expand Down

0 comments on commit 6a2ea7a

Please sign in to comment.