fix: update known active pairings after session connects
This commit is contained in:
parent
55249754f5
commit
248d60e516
@ -131,6 +131,8 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac
|
||||
const session = await approval();
|
||||
console.log("Established session:", session);
|
||||
await onSessionConnected(session);
|
||||
// Update known pairings after session is connected.
|
||||
setPairings(client.pairing.getAll({ active: true }));
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
// ignore rejection
|
||||
|
Loading…
Reference in New Issue
Block a user