From 891512881c6aca61a4019aed11dc00cf491b0164 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 10 Aug 2021 22:57:01 +0200 Subject: [PATCH] fixing flow errors --- ui/component/livestreamComments/view.jsx | 8 ++++---- ui/component/walletSendTip/view.jsx | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ui/component/livestreamComments/view.jsx b/ui/component/livestreamComments/view.jsx index 931af568a..2e3c73cdb 100644 --- a/ui/component/livestreamComments/view.jsx +++ b/ui/component/livestreamComments/view.jsx @@ -163,7 +163,7 @@ export default function LivestreamComments(props: Props) {
{__('Live discussion')}
- {superChatsTotalAmount > 0 && ( + {(superChatsTotalAmount || 0) > 0 && (
{/* the superchats in chronological order button */} @@ -187,8 +187,8 @@ export default function LivestreamComments(props: Props) { })} label={ <> - / - {' '}{__('Tipped')} + / + {' '}{__('Tipped')} } onClick={function() { @@ -208,7 +208,7 @@ export default function LivestreamComments(props: Props) {
)}
- {viewMode === VIEW_MODE_CHAT && superChatsTotalAmount > 0 && superChatsByTipAmount && ( + {viewMode === VIEW_MODE_CHAT && superChatsByTipAmount && (superChatsTotalAmount || 0) > 0 && (
{superChatsByTipAmount.map((superChat: Comment) => ( diff --git a/ui/component/walletSendTip/view.jsx b/ui/component/walletSendTip/view.jsx index 085f6a18b..4fd41e9f7 100644 --- a/ui/component/walletSendTip/view.jsx +++ b/ui/component/walletSendTip/view.jsx @@ -621,16 +621,15 @@ function WalletSendTip(props: Props) { )} // if it's LBC and there is no balance, you can prompt to purchase LBC - : - }}>Supporting content requires %lbc%} - subtitle={ + : }}>Supporting content requires %lbc%} + subtitle={ }}> With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to see. } - actions={ + actions={