Skip to content

Commit

Permalink
fix: gift recipients being lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Dec 25, 2023
1 parent c88d79d commit 97fef84
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 97fef84

Please sign in to comment.