Skip to content

Commit

Permalink
fix amount in voice alert
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Mar 1, 2024
1 parent 1101703 commit 7d8474a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/logic/voice/VoiceController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export class VoiceController {
: text;
const resultText = choosenTemplate
.trim()
.replace("<username>", data.senderName ? data.senderName : "Аноним")
.replace("<amount>", data.amount.amount)
.replace("<minoramount>", data.amount.amount * 100)
.replace("<username>", data.nickname ? data.nickname : "Аноним")
.replace("<amount>", data.amount.major)
.replace("<minoramount>", data.amount.major * 100)
.replace("<streamer>", this.recipientId);
try {
if (resultText.length > 0){
Expand Down

0 comments on commit 7d8474a

Please sign in to comment.