From fe96468c3ff5676c3a0f33c347724c3fd700f160 Mon Sep 17 00:00:00 2001 From: myxmaster Date: Fri, 27 Dec 2024 20:44:05 +0100 Subject: [PATCH] block 0 fee --- views/EditFee.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/views/EditFee.tsx b/views/EditFee.tsx index d7ec8f737..6011d0165 100644 --- a/views/EditFee.tsx +++ b/views/EditFee.tsx @@ -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,