mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix
This commit is contained in:
@@ -195,9 +195,8 @@ class ConnectDevicePageBodyState extends State<ConnectDevicePageBody> {
|
||||
final isConnected = await widget.hardwareWalletVM.connectDevice(device, widget.walletType);
|
||||
_isConnectPressed = false;
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (isConnected)
|
||||
{
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (isConnected) {
|
||||
widget.onConnectDevice(navigatorKey.currentContext!, widget.hardwareWalletVM);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user