SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

NameAddrHeader.displayName has incorrect type

Open RamsayRomero opened this issue 1 year ago • 0 comments

Describe the bug The return type of the get displayName() method on the NameAddrHeader class is typed as string. However, the displayName could be undefined so it should be typed as string | undefined.

Additional context My app was crashing in production because I was accessing string methods on the displayName property assuming it would always be a string but it turned out to be undefined.

RamsayRomero avatar May 15 '23 21:05 RamsayRomero