Skip to content

Commit fa36ed2

Browse files
committed
fix tsc
1 parent 305f4d8 commit fa36ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/react/ChatProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ export default () => {
7979
if (chatVanillaRestrictions && !miscUiState.flyingSquid) {
8080
const validation = isStringAllowed(message)
8181
if (!validation.valid) {
82-
const choice = await showOptionsModal(`Can't send invalid characters to vanilla server (${validation.invalid.join(', ')}). You can use them only in command blocks.`, [
82+
const choice = await showOptionsModal(`Can't send invalid characters to vanilla server (${validation.invalid?.join(', ')}). You can use them only in command blocks.`, [
8383
'Remove Them & Send'
8484
])
8585
if (!choice) return
86-
message = validation.clean
86+
message = validation.clean!
8787
}
8888
}
8989

0 commit comments

Comments
 (0)