Skip to content

Commit

Permalink
block 0 fee
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed Dec 27, 2024
1 parent 52b6454 commit fe96468
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions views/EditFee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ export default class EditFee extends React.Component<
keyboardType="numeric"
value={this.state.customFee}
onChangeText={(text: string) => {
text =
text
.replace(/[^0-9]*/g, '')
.replace(/^0+/, '') || '0';
text = text
.replace(/[^0-9]*/g, '')
.replace(/^0+/, '');
this.setState({
customFee: text,
fee: text,
Expand Down

0 comments on commit fe96468

Please sign in to comment.