Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(request): allow route even if fees are less that a cent #447

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/components/Request/Pay/Views/Initial.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,9 @@ export const InitialView = ({
})
const { feeEstimation, estimatedFromAmount } = txData
setEstimatedFromValue(estimatedFromAmount)
if (Number(feeEstimation) > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xd so dumb

clearError()
setTxFee(Number(feeEstimation).toFixed(2))
setViewState(ViewState.READY_TO_PAY)
} else {
setErrorState({ showError: true, errorMessage: ERR_NO_ROUTE })
setIsFeeEstimationError(true)
setTxFee('0')
}
clearError()
setTxFee(Number(feeEstimation).toFixed(2))
setViewState(ViewState.READY_TO_PAY)
} catch (error) {
setErrorState({ showError: true, errorMessage: ERR_NO_ROUTE })
setIsFeeEstimationError(true)
Expand Down