File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/fcl-core/src/events Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export function events(filterOrType?: EventFilter | string) {
50
50
)
51
51
fallbackLegacyPolling ( )
52
52
} else {
53
- onError ?. ( error )
53
+ onError ( error )
54
54
}
55
55
} ,
56
56
} )
@@ -67,7 +67,7 @@ export function events(filterOrType?: EventFilter | string) {
67
67
unsubscribeFnLegacy = legacyEvents ( filterOrType ) . subscribe (
68
68
( event : Event , error ?: Error ) => {
69
69
if ( error ) {
70
- onError ?. ( error )
70
+ onError ( error )
71
71
} else {
72
72
onData ( event )
73
73
}
@@ -92,7 +92,7 @@ export function events(filterOrType?: EventFilter | string) {
92
92
93
93
// Subscribe to events
94
94
const initPromise = subscribeToEvents ( ) . catch ( error => {
95
- onError ?. ( error )
95
+ onError ( error )
96
96
} )
97
97
98
98
// Return an unsubscribe function
You can’t perform that action at this time.
0 commit comments