Skip to content

Commit e3b271f

Browse files
AndrewAndrew
authored andcommitted
fix pairing
1 parent 3832c01 commit e3b271f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/pairing.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export class PairingWizard extends EventEmitter {
196196
}
197197

198198
var credentials = {
199+
uuid: this._uuid,
199200
userId: pairingData.userId,
200201
pairId: pairingData.pairId,
201202
pairToken: pairingData.pairToken,
@@ -208,11 +209,7 @@ export class PairingWizard extends EventEmitter {
208209
this._paired = true;
209210
this._pairingResult = credentials;
210211

211-
this.emit('paired', {
212-
userId: credentials.userId,
213-
pairToken: credentials.pairToken,
214-
children: credentials.children,
215-
});
212+
this.emit('paired', credentials);
216213

217214
// Auto-terminate the wizard after successful pairing
218215
await this.stop();

0 commit comments

Comments
 (0)