make it show 1 streak even if zero if you just posted, because the streak post just hasn't gone through yet
This commit is contained in:
parent
4e0aa87ab3
commit
6b8caa0ee9
|
@ -106,7 +106,6 @@ const StreakModal: React.FC<IStreakModal> = ({ onClose }) => {
|
|||
</Link>
|
||||
)}
|
||||
|
||||
{account.ditto?.streak?.days > 0 && (
|
||||
<HStack alignItems='center'>
|
||||
<Text theme='primary'>
|
||||
<span role='img' aria-label={intl.formatMessage(messages.streak)}>
|
||||
|
@ -114,10 +113,11 @@ const StreakModal: React.FC<IStreakModal> = ({ onClose }) => {
|
|||
</span>
|
||||
</Text>
|
||||
<Text weight='bold' size='sm' className='text-black'>
|
||||
{shortNumberFormat(account.ditto.streak.days)}
|
||||
{account.ditto?.streak?.days > 0 ?
|
||||
shortNumberFormat(account.ditto.streak.days) :
|
||||
<FormattedMessage id='streak_modal.streak_count' defaultMessage='1' />}
|
||||
</Text>
|
||||
</HStack>
|
||||
)}
|
||||
</HStack>
|
||||
|
||||
</Stack>
|
||||
|
|
Loading…
Reference in New Issue