show fee explanation even for single sat

This commit is contained in:
Paul Miller
2023-05-30 17:17:32 -05:00
committed by Tony Giorgio
parent b0d36cb1e2
commit 979697492d
2 changed files with 18 additions and 8 deletions

View File

@@ -41,7 +41,9 @@ export function AmountSmall(props: {
return (
<span class="font-light">
{prettyPrintAmount(props.amountSats)}&nbsp;
<span class="text-sm">SATS</span>
<span class="text-sm">
{props.amountSats === 1 || props.amountSats === 1n ? "SAT" : "SATS"}
</span>
</span>
)
);
}