diff --git a/src/hooks/useServiceInformation.ts b/src/hooks/useServiceInformation.ts index 6bc84fb..06ce1ca 100644 --- a/src/hooks/useServiceInformation.ts +++ b/src/hooks/useServiceInformation.ts @@ -44,7 +44,7 @@ export function useServiceInformation( return; } - if ((e.data.source as string).startsWith('react-devtools-')) { + if ((e.data.source as string | undefined)?.startsWith('react-devtools-')) { return; }