From 6d57bbffe54e15d10ed0864cb445bef43dd13d5b Mon Sep 17 00:00:00 2001 From: abhiShandy Date: Tue, 9 Apr 2024 12:12:24 -0400 Subject: [PATCH] fix: feetext defaults to free (#1031) * fix: feetext defaults to free * Update components/fee-button.js Co-authored-by: ekzyis --------- Co-authored-by: ekzyis --- components/fee-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fee-button.js b/components/fee-button.js index 4118b3a5..6ad9fa57 100644 --- a/components/fee-button.js +++ b/components/fee-button.js @@ -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 (