We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ba450 commit 59e12ceCopy full SHA for 59e12ce
suite-native/module-connect-popup/src/screens/ConnectPopupScreen.tsx
@@ -50,12 +50,18 @@ export const ConnectPopupScreen = ({
50
const { method, methodError } = useConnectMethod(popupOptions);
51
52
const callDevice = useCallback(async () => {
53
- if (!popupOptions) return;
+ if (!popupOptions || !device) return;
54
55
setLoading(true);
56
// @ts-expect-error method is dynamic
57
const response = await TrezorConnect[popupOptions.method]({
58
...popupOptions.params,
59
+ device: {
60
+ path: device.path,
61
+ instance: device.instance,
62
+ state: device.state,
63
+ },
64
+ useEmptyPassphrase: device.useEmptyPassphrase,
65
});
66
setCallResult(response);
67
dispatch(deviceActions.removeButtonRequests({ device }));
0 commit comments