mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 06:21:37 +01:00
fix: ๐ fee unit
This commit is contained in:
parent
fd67d99ff6
commit
c7cfdfacca
1 changed files with 2 additions and 4 deletions
|
@ -47,8 +47,6 @@ export const FeeCard: React.FC<FeeCardProps> = ({
|
|||
public_key,
|
||||
} = channelInfo;
|
||||
|
||||
const feeRateSats = feeRate / 1000;
|
||||
|
||||
const [updateFees] = useUpdateFeesMutation({
|
||||
onError: error => toast.error(getErrorContent(error)),
|
||||
onCompleted: data => {
|
||||
|
@ -136,9 +134,9 @@ export const FeeCard: React.FC<FeeCardProps> = ({
|
|||
<DarkSubTitle>{'Fee Rate:'}</DarkSubTitle>
|
||||
</NoWrapTitle>
|
||||
<SingleLine>
|
||||
{feeRateSats}
|
||||
{feeRate}
|
||||
<DarkSubTitle>
|
||||
{feeRateSats === 1 ? 'sat/million' : 'sats/million'}
|
||||
{feeRate === 1 ? 'sat/million' : 'sats/million'}
|
||||
</DarkSubTitle>
|
||||
</SingleLine>
|
||||
</SingleLine>
|
||||
|
|
Loadingโฆ
Add table
Reference in a new issue