Skip to content

Commit

Permalink
fix(connect): clone udev/bridge info
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrjpolak committed Dec 18, 2024
1 parent 058075e commit a6d61a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/connect-web/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { cloneObject } from '@trezor/utils';
import { factory } from '@trezor/connect/src/factory';
import { config } from '@trezor/connect/src/data/config';
import { TrezorConnectDynamic } from '@trezor/connect/src/impl/dynamic';
Expand Down Expand Up @@ -31,8 +32,8 @@ const impl = new TrezorConnectDynamic<
impl: new CoreInModule((message: CoreEventMessage) => {
if (message.event === TRANSPORT_EVENT) {
const platform = getInstallerPackage();
message.payload.bridge = suggestBridgeInstaller(platform);
message.payload.udev = suggestUdevInstaller(platform);
message.payload.bridge = cloneObject(suggestBridgeInstaller(platform));
message.payload.udev = cloneObject(suggestUdevInstaller(platform));
}

return message;
Expand Down

0 comments on commit a6d61a2

Please sign in to comment.