fix: feetext defaults to free (#1031)

* fix: feetext defaults to free

* Update components/fee-button.js

Co-authored-by: ekzyis <ek@stacker.news>

---------

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
abhiShandy 2024-04-09 12:12:24 -04:00 committed by GitHub
parent c7d926df30
commit 6d57bbffe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ export default function FeeButton ({ ChildButton = SubmitButton, variant, text,
? 'free'
: total > 1
? numWithUnits(total, { abbreviate: false, format: true })
: undefined
: total === 1 ? undefined : 'free'
disabled ||= ctxDisabled
return (