diff --git a/web-chat/src/App.tsx b/web-chat/src/App.tsx index b6949b28a9..eb958d6c3b 100644 --- a/web-chat/src/App.tsx +++ b/web-chat/src/App.tsx @@ -57,7 +57,7 @@ export default function App() { } else { stateWaku.libp2p.pubsub.on(RelayDefaultTopic, handleNewMessages); - stateWaku.libp2p.peerStore.once( + stateWaku.libp2p.peerStore.on( 'change:protocols', handleProtocolChange.bind({}, stateWaku) );