File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export class KastleBrowserAPI {
186
186
const onMessage = async ( event : MessageEvent < unknown > ) => {
187
187
try {
188
188
const result = callback ( event ) ;
189
- if ( ! result ) {
189
+ if ( result === undefined ) {
190
190
return ; // Skip if the result is empty, which means the message is not for this channel
191
191
}
192
192
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export class EthereumBrowserAPI {
126
126
const onMessage = async ( event : MessageEvent < unknown > ) => {
127
127
try {
128
128
const result = callback ( event ) ;
129
- if ( ! result ) {
129
+ if ( result === undefined ) {
130
130
return ; // Skip if the result is empty, which means the message is not for this channel
131
131
}
132
132
You can’t perform that action at this time.
0 commit comments