fixing flow errors
This commit is contained in:
parent
b41eeec78e
commit
891512881c
2 changed files with 8 additions and 9 deletions
|
@ -163,7 +163,7 @@ export default function LivestreamComments(props: Props) {
|
||||||
<div className="card livestream__discussion">
|
<div className="card livestream__discussion">
|
||||||
<div className="card__header--between livestream-discussion__header">
|
<div className="card__header--between livestream-discussion__header">
|
||||||
<div className="livestream-discussion__title">{__('Live discussion')}</div>
|
<div className="livestream-discussion__title">{__('Live discussion')}</div>
|
||||||
{superChatsTotalAmount > 0 && (
|
{(superChatsTotalAmount || 0) > 0 && (
|
||||||
<div className="recommended-content__toggles">
|
<div className="recommended-content__toggles">
|
||||||
|
|
||||||
{/* the superchats in chronological order button */}
|
{/* the superchats in chronological order button */}
|
||||||
|
@ -187,8 +187,8 @@ export default function LivestreamComments(props: Props) {
|
||||||
})}
|
})}
|
||||||
label={
|
label={
|
||||||
<>
|
<>
|
||||||
<CreditAmount amount={superChatsTotalAmount} size={8} /> /
|
<CreditAmount amount={superChatsTotalAmount || 0} size={8} /> /
|
||||||
<CreditAmount amount={superChatsFiatAmount} size={8} isFiat /> {' '}{__('Tipped')}
|
<CreditAmount amount={superChatsFiatAmount || 0} size={8} isFiat /> {' '}{__('Tipped')}
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
onClick={function() {
|
onClick={function() {
|
||||||
|
@ -208,7 +208,7 @@ export default function LivestreamComments(props: Props) {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div ref={commentsRef} className="livestream__comments-wrapper">
|
<div ref={commentsRef} className="livestream__comments-wrapper">
|
||||||
{viewMode === VIEW_MODE_CHAT && superChatsTotalAmount > 0 && superChatsByTipAmount && (
|
{viewMode === VIEW_MODE_CHAT && superChatsByTipAmount && (superChatsTotalAmount || 0) > 0 && (
|
||||||
<div className="livestream-superchats__wrapper">
|
<div className="livestream-superchats__wrapper">
|
||||||
<div className="livestream-superchats__inner">
|
<div className="livestream-superchats__inner">
|
||||||
{superChatsByTipAmount.map((superChat: Comment) => (
|
{superChatsByTipAmount.map((superChat: Comment) => (
|
||||||
|
|
|
@ -621,16 +621,15 @@ function WalletSendTip(props: Props) {
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
// if it's LBC and there is no balance, you can prompt to purchase LBC
|
// if it's LBC and there is no balance, you can prompt to purchase LBC
|
||||||
:
|
: <Card
|
||||||
<Card
|
title={<I18nMessage tokens={{ lbc: <LbcSymbol size={22} /> }}>Supporting content requires %lbc%</I18nMessage>}
|
||||||
title={<I18nMessage tokens={{ lbc: <LbcSymbol size={22} /> }}>Supporting content requires %lbc%</I18nMessage>}
|
subtitle={
|
||||||
subtitle={
|
|
||||||
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
|
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
|
||||||
With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to
|
With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to
|
||||||
see.
|
see.
|
||||||
</I18nMessage>
|
</I18nMessage>
|
||||||
}
|
}
|
||||||
actions={
|
actions={
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<Button
|
<Button
|
||||||
icon={ICONS.REWARDS}
|
icon={ICONS.REWARDS}
|
||||||
|
|
Loading…
Reference in a new issue