Skip to content

Commit

Permalink
Merge pull request #2682 from myxmaster/remove_leading_zero_custom_fee
Browse files Browse the repository at this point in the history
Custom feerate input: remove leading zero
  • Loading branch information
kaloudis authored Dec 29, 2024
2 parents c931be2 + fe96468 commit 22e6063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/EditFee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ export default class EditFee extends React.Component<
keyboardType="numeric"
value={this.state.customFee}
onChangeText={(text: string) => {
text = text.replace(/[^0-9]*/g, '');
text = text
.replace(/[^0-9]*/g, '')
.replace(/^0+/, '');
this.setState({
customFee: text,
fee: text,
Expand Down

0 comments on commit 22e6063

Please sign in to comment.