Skip to content

Commit

Permalink
Move emoji out of Invalid BPM string
Browse files Browse the repository at this point in the history
  • Loading branch information
curtgrimes committed Dec 28, 2021
1 parent 82af37e commit 3550718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export default {
"Stop metronome": "Stop metronome",
"Start metronome": "Start metronome",
"%1 BPM": "%1 BPM",
"⚠️ Invalid BPM": "⚠️ Invalid BPM",
"Invalid BPM": "Invalid BPM",
"Invalid or unsupported meter": "Invalid or unsupported meter",
};
2 changes: 1 addition & 1 deletion src/models/MetronomeBPM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export class MetronomeBPM {
toString() {
return this.isValid()
? t(`%1 BPM`, String(this.bpm))
: t("⚠️ Invalid BPM");
: `⚠️ ${t("Invalid BPM")}`;
}
}

0 comments on commit 3550718

Please sign in to comment.