Skip to content

Commit

Permalink
fix: add minimum amount to missing inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad committed Nov 22, 2023
1 parent 9166a92 commit 8ab5c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export function DelegatorSettings() {
</label>
<input
className='mana_calculator__compact inlined'
type='number'
min='0'
value={fromMicro(state.stakedOrDelegatedTokens)}
onChange={(e) => handleOwnStakeChange(toMicro(Number(e.target.value)))}
></input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export function ValidatorSettings() {
</label>
<input
className='mana_calculator__compact inlined'
type='number'
min='0'
value={fromMicro(state.stakedOrDelegatedTokens)}
onChange={(e) => handleOwnStakeChange(toMicro(Number(e.target.value)))}
></input>
Expand Down

0 comments on commit 8ab5c57

Please sign in to comment.