Skip to content

Commit 59e12ce

Browse files
committed
fix(suite-native): connect popup use selected device
1 parent f7ba450 commit 59e12ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

suite-native/module-connect-popup/src/screens/ConnectPopupScreen.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,18 @@ export const ConnectPopupScreen = ({
5050
const { method, methodError } = useConnectMethod(popupOptions);
5151

5252
const callDevice = useCallback(async () => {
53-
if (!popupOptions) return;
53+
if (!popupOptions || !device) return;
5454

5555
setLoading(true);
5656
// @ts-expect-error method is dynamic
5757
const response = await TrezorConnect[popupOptions.method]({
5858
...popupOptions.params,
59+
device: {
60+
path: device.path,
61+
instance: device.instance,
62+
state: device.state,
63+
},
64+
useEmptyPassphrase: device.useEmptyPassphrase,
5965
});
6066
setCallResult(response);
6167
dispatch(deviceActions.removeButtonRequests({ device }));

0 commit comments

Comments
 (0)