From a67673a19bf29d04153137e06d572704f99a0868 Mon Sep 17 00:00:00 2001 From: Atris Date: Thu, 24 Oct 2024 18:23:11 +0200 Subject: [PATCH] fix: styles and getters --- components/Staking.tsx | 12 +++++++----- components/Swap.tsx | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/Staking.tsx b/components/Staking.tsx index 29400a6..5314519 100644 --- a/components/Staking.tsx +++ b/components/Staking.tsx @@ -126,7 +126,7 @@ const Staking: React.FC = () => { {delegationTokens.length === 0 && ( -
+
Waiting for a staking delegation to occur
{ valueView: { value: new ValueView_KnownAssetId({ amount: - getBalanceView.pipe(getEquivalentValues)()[0] - .equivalentAmount, + getBalanceView.pipe(getEquivalentValues)( + balance, + )[0].equivalentAmount, metadata: - getBalanceView.pipe(getEquivalentValues)()[0] - .numeraire, + getBalanceView.pipe(getEquivalentValues)( + balance, + )[0].numeraire, }), case: 'knownAssetId', }, diff --git a/components/Swap.tsx b/components/Swap.tsx index 9550f16..cbfcaa2 100644 --- a/components/Swap.tsx +++ b/components/Swap.tsx @@ -188,7 +188,7 @@ function SwapMonitor() { /> )) ) : ( -
+
Waiting for a swap to occur