summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/toaster.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx
index 7980faef..04f1556e 100644
--- a/frontend/src/toaster.tsx
+++ b/frontend/src/toaster.tsx
@@ -35,7 +35,7 @@ class Toaster extends Logger {
while (true) {
instance = findInReactTree(
(document.getElementById('root') as any)._reactRootContainer._internalRoot.current,
- (x) => x?.memoizedProps?.className?.startsWith('toastmanager_ToastPlaceholder'),
+ (x) => x?.memoizedProps?.className?.startsWith?.('toastmanager_ToastPlaceholder'),
);
if (instance) break;
this.debug('finding instance');