Skip to content

Commit

Permalink
feat: minor refactor in fee rate checking function
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Apr 25, 2024
1 parent 985b8e8 commit ce4e772
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/hooks/use-bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,11 @@ export function useBitcoin(): UseBitcoinReturnType {
*
* @returns The fee rate.
*/
function checkFeeRate(feeRate: number): number {
function checkFeeRate(feeRate: number | undefined): number {
if (!feeRate || feeRate < 2) {
return 2;
} else {
return feeRate;
}
return feeRate;
}

/**
Expand Down

0 comments on commit ce4e772

Please sign in to comment.