FIX: Replace by fee mount

This commit is contained in:
Marcos Rodriguez Velez 2024-06-15 13:17:09 -04:00
parent 59a1402785
commit 99fcc34836
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -57,11 +57,13 @@ const ReplaceFeeSuggestions: React.FC<ReplaceFeeSuggestionsProps> = ({ onFeeSele
setNetworkFees(fees); setNetworkFees(fees);
onFeeSelected(fees.fastestFee); onFeeSelected(fees.fastestFee);
setSelectedFeeType(NetworkTransactionFeeType.FAST); setSelectedFeeType(NetworkTransactionFeeType.FAST);
}, [onFeeSelected]); // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => { useEffect(() => {
fetchNetworkFees(); fetchNetworkFees();
}, [fetchNetworkFees]); // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleFeeSelection = (feeType: NetworkTransactionFeeType) => { const handleFeeSelection = (feeType: NetworkTransactionFeeType) => {
if (feeType !== NetworkTransactionFeeType.CUSTOM) { if (feeType !== NetworkTransactionFeeType.CUSTOM) {