Apply suggestion from @Vendicated

This commit is contained in:
V 2026-01-24 00:09:49 +01:00 • committed by GitHub
parent c4ad1c457b
commit 94cc42c253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ export default definePlugin({
replacement: [
{
match: /(\.renderReactions\(\i\).+?className:)/,
replace: '$&(this.props.channel.nsfw?"vc-nsfw-img ":"")+'
replace: '$&(this.props?.channel?.nsfw?"vc-nsfw-img ":"")+'
}
]
}