Skip to content

Commit

Permalink
fix: gift recipients being lowercase (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer authored Dec 25, 2023
1 parent c88d79d commit dac7c0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ChatGiftedSubscriptionMessage extends ChatSubscriptionMessa
};
}, {});

attributes['data-giftee'] = this.giftee.username.toLowerCase();
attributes['data-giftee'] = this.giftee.username;

message.querySelector('.subscription-icon').classList.add('gift');

Expand All @@ -33,7 +33,7 @@ export default class ChatGiftedSubscriptionMessage extends ChatSubscriptionMessa

const gifteeColorFlair = usernameColorFlair(chat.flairs, this.giftee);
giftee.classList.add(gifteeColorFlair?.name);
giftee.innerText = this.giftee.username;
giftee.innerText = this.giftee.displayName;

const subscriptionInfo = message.querySelector('.event-info');
const user = message.querySelector('.user');
Expand Down

0 comments on commit dac7c0b

Please sign in to comment.