diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md
index df477235b1..becbc8a819 100644
--- a/web-wallet/CHANGELOG.md
+++ b/web-wallet/CHANGELOG.md
@@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove `fiat` property from Balance component [#1323](https://github.com/dusk-network/rusk/issues/1323)
- Remove `gasSettings` store update from `dashboard/+page.svelte.js` [#1353](https://github.com/dusk-network/rusk/issues/1353)
+- Remove the use of `checkValidity()` in Send and Stake flow amounts validity checks [#1391](https://github.com/dusk-network/rusk/issues/1391)
### Fixed
diff --git a/web-wallet/src/lib/components/Send/Send.svelte b/web-wallet/src/lib/components/Send/Send.svelte
index b3c08ea500..1b380f121d 100644
--- a/web-wallet/src/lib/components/Send/Send.svelte
+++ b/web-wallet/src/lib/components/Send/Send.svelte
@@ -2,7 +2,7 @@
@@ -106,7 +105,6 @@
}
amount = maxSpendable;
- checkAmountValid();
}}
text="USE MAX"
/>
@@ -118,10 +116,9 @@
bind:value={amount}
required
type="number"
- min={0.000000001}
+ min={minAmount}
max={maxSpendable}
step="0.000000001"
- on:input={checkAmountValid}
/>
diff --git a/web-wallet/src/lib/components/Stake/Stake.svelte b/web-wallet/src/lib/components/Stake/Stake.svelte
index c44a84aa28..387cd10cd0 100644
--- a/web-wallet/src/lib/components/Stake/Stake.svelte
+++ b/web-wallet/src/lib/components/Stake/Stake.svelte
@@ -73,11 +73,8 @@
/** @type {boolean} */
let isValidGas = true;
- $: isStakeAmountValid = stakeAmount >= minStake && stakeAmount <= maxSpendable;
- $: totalLuxFee = luxFee + duskToLux(stakeAmount);
- $: isFeeWithinLimit = totalLuxFee <= duskToLux(spendable);
- $: isNextButtonDisabled = flow === "stake"
- ? !(isStakeAmountValid && isValidGas && isFeeWithinLimit) : false;
+ /** @type {boolean} */
+ let hideStakingNoticeNextTime = false;
let { gasLimit, gasPrice } = gasSettings;
@@ -121,8 +118,11 @@
$: fee = formatter(luxToDusk(luxFee));
$: maxSpendable = deductLuxFeeFrom(spendable, luxFee);
$: minStake = maxSpendable > 0 ? Math.min(defaultMinStake, maxSpendable) : defaultMinStake;
-
- let hideStakingNoticeNextTime = false;
+ $: isStakeAmountValid = stakeAmount >= minStake && stakeAmount <= maxSpendable;
+ $: totalLuxFee = luxFee + duskToLux(stakeAmount);
+ $: isFeeWithinLimit = totalLuxFee <= duskToLux(spendable);
+ $: isNextButtonDisabled = flow === "stake"
+ ? !(isStakeAmountValid && isValidGas && isFeeWithinLimit) : false;
function getWizardSteps () {
if (flow === "stake") {