diff --git a/package-lock.json b/package-lock.json index c7bb927a..2fe56d31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.2.33", + "version": "0.2.34", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.2.33", + "version": "0.2.34", "dependencies": { "@bitcoinerlab/secp256k1": "^1.1.1", "@keystonehq/animated-qr": "^0.8.6", diff --git a/package.json b/package.json index a3564de8..7d9e8ac2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.2.33", + "version": "0.2.34", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx index 95e3cd45..68d16d41 100644 --- a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx +++ b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx @@ -31,7 +31,7 @@ export const FinalityProviders: React.FC = ({ return ( <> -

Select a finality provider.

+

Step-1: Select a finaltiy provider

Finality Provider

BTC PK

diff --git a/src/app/components/Staking/Form/StakingAmount.tsx b/src/app/components/Staking/Form/StakingAmount.tsx index 2ce5d531..a52d4323 100644 --- a/src/app/components/Staking/Form/StakingAmount.tsx +++ b/src/app/components/Staking/Form/StakingAmount.tsx @@ -94,7 +94,10 @@ export const StakingAmount: React.FC = ({ } else { setError(""); onStakingAmountSatChange(satoshis); - setValue(maxDecimals(satoshiToBtc(satoshis), 8).toString()); + const newValue = maxDecimals(satoshiToBtc(satoshis), 8).toString(); + if (newValue !== value) { + setValue(newValue); + } } }, [ btcWalletBalanceSat, diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 18230b71..14f52ef3 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -607,7 +607,7 @@ export const Staking: React.FC = ({ return ( <> -

Set up staking terms

+

Step-2: Set up staking terms