Skip to content

[Bug]: MessageItem crashes when message.from is null #1270

Description

@danditomaso

apps/web/src/components/PageComponents/Messages/MessageItem.tsx:148 calls message.from.toString(16) inside the displayName useMemo unconditionally. The surrounding expression at :144-145 explicitly handles message.from == null, so a null from is possible — and will throw TypeError: Cannot read properties of null.

Guard the useMemo body or move the null-fallback branch above it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions