diff --git a/components/action-tooltip.js b/components/action-tooltip.js index d2fc246f..ff5603e1 100644 --- a/components/action-tooltip.js +++ b/components/action-tooltip.js @@ -8,7 +8,7 @@ export default function ActionTooltip ({ children, notForm, disable, overlayText if (!notForm) { formik = useFormikContext() } - if (disable) { + if (disable || !overlayText) { return children } return ( @@ -16,7 +16,7 @@ export default function ActionTooltip ({ children, notForm, disable, overlayText placement={placement || 'bottom'} overlay={ - {overlayText || '1 sat'} + {overlayText} } trigger={['hover', 'focus']} diff --git a/components/fee-button.js b/components/fee-button.js index 6ad9fa57..fad5bf2c 100644 --- a/components/fee-button.js +++ b/components/fee-button.js @@ -118,12 +118,12 @@ export default function FeeButton ({ ChildButton = SubmitButton, variant, text, ? 'free' : total > 1 ? numWithUnits(total, { abbreviate: false, format: true }) - : total === 1 ? undefined : 'free' + : undefined disabled ||= ctxDisabled return (
- + {text} {!me && } diff --git a/components/poll.js b/components/poll.js index 7185421c..c7765e48 100644 --- a/components/poll.js +++ b/components/poll.js @@ -52,7 +52,7 @@ export default function Poll ({ item }) { const variables = { id: v.id } return ( - +