diff --git a/components/OnchainFeeInput.tsx b/components/OnchainFeeInput.tsx index 4239ccc374..656046dde7 100644 --- a/components/OnchainFeeInput.tsx +++ b/components/OnchainFeeInput.tsx @@ -14,6 +14,8 @@ interface OnchainFeeInputProps { onChangeFee: (fee: string) => void; } +const DEFAULT_FEE = '10'; + export default function OnchainFeeInput(props: OnchainFeeInputProps) { const { fee, onChangeFee, navigation } = props; @@ -45,6 +47,8 @@ export default function OnchainFeeInput(props: OnchainFeeInputProps) { setErrorOccurredLoadingFees(true); setLoading(false); }); + } else { + onChangeFee(DEFAULT_FEE); } }, []); @@ -97,7 +101,7 @@ export default function OnchainFeeInput(props: OnchainFeeInputProps) { ) : ( { setNewFee(text);