diff --git a/packages/transport/web-ble/src/api/transport/BleDeviceConnection.ts b/packages/transport/web-ble/src/api/transport/BleDeviceConnection.ts index fb6c920c7..2c9ab43ca 100644 --- a/packages/transport/web-ble/src/api/transport/BleDeviceConnection.ts +++ b/packages/transport/web-ble/src/api/transport/BleDeviceConnection.ts @@ -123,10 +123,12 @@ export class BleDeviceConnection implements DeviceConnection { value: { buffer }, }, } = event; - if (!this._isDeviceReady) { - this.onReceiveSetupApduResponse(buffer); - } else { - this.receiveApdu(buffer); + if (buffer instanceof ArrayBuffer) { + if (!this._isDeviceReady) { + this.onReceiveSetupApduResponse(buffer); + } else { + this.receiveApdu(buffer); + } } };