Fix trash icon button click handler

This commit is contained in:
Spicy_Marinara 2026-01-12 02:47:47 +01:00
parent 4f8aaefaec
commit 80e8431fd4

View file

@ -1744,7 +1744,7 @@ username: message
btn.find('i').addClass('fa-spin');
setTimeout(() => btn.find('i').removeClass('fa-spin'), 1000);
generateDebounced();
} else if (btn.find('.fa-xmark').length) {
} else if (btn.find('.fa-trash-can').length) {
// Clear button clicked
if (confirm('Clear generated chat and all cached commentary?')) {
setDiscordText('');