From 8eae2e31366e1fd06f47f2a34edcf883f9a62ea0 Mon Sep 17 00:00:00 2001 From: Gala Date: Thu, 16 Jun 2022 11:39:23 +0200 Subject: [PATCH] Wallet: Sending again the NodeId to fetch the saturation (#1375) * Sending again the identity key when fetching the saturation * Remove non-null assertion --- nym-wallet/src/components/Delegation/DelegateModal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nym-wallet/src/components/Delegation/DelegateModal.tsx b/nym-wallet/src/components/Delegation/DelegateModal.tsx index c9a50a383f..83948d8924 100644 --- a/nym-wallet/src/components/Delegation/DelegateModal.tsx +++ b/nym-wallet/src/components/Delegation/DelegateModal.tsx @@ -81,13 +81,12 @@ export const DelegateModal: React.FC<{ } }; - const validateIdentityKey = async (isValid: boolean) => { + const validateIdentityKey = (isValid: boolean) => { if (!isValid) { setErrorIdentityKey('Identity key is invalid'); setErrorNodeSaturation(undefined); } else { setErrorIdentityKey(undefined); - await handleCheckStakeSaturation(identityKey!); } }; @@ -109,8 +108,9 @@ export const DelegateModal: React.FC<{ } }; - const handleIdentityKeyChanged = async (newIdentityKey: string) => { + const handleIdentityKeyChanged = (newIdentityKey: string) => { setIdentityKey(newIdentityKey); + handleCheckStakeSaturation(newIdentityKey); if (onIdentityKeyChanged) { onIdentityKeyChanged(newIdentityKey);