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,18 +106,18 @@ const StreakModal: React.FC<IStreakModal> = ({ onClose }) => {
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{account.ditto?.streak?.days > 0 && (
|
<HStack alignItems='center'>
|
||||||
<HStack alignItems='center'>
|
<Text theme='primary'>
|
||||||
<Text theme='primary'>
|
<span role='img' aria-label={intl.formatMessage(messages.streak)}>
|
||||||
<span role='img' aria-label={intl.formatMessage(messages.streak)}>
|
<Icon src={flameIcon} className='size-4' />
|
||||||
<Icon src={flameIcon} className='size-4' />
|
</span>
|
||||||
</span>
|
</Text>
|
||||||
</Text>
|
<Text weight='bold' size='sm' className='text-black'>
|
||||||
<Text weight='bold' size='sm' className='text-black'>
|
{account.ditto?.streak?.days > 0 ?
|
||||||
{shortNumberFormat(account.ditto.streak.days)}
|
shortNumberFormat(account.ditto.streak.days) :
|
||||||
</Text>
|
<FormattedMessage id='streak_modal.streak_count' defaultMessage='1' />}
|
||||||
</HStack>
|
</Text>
|
||||||
)}
|
</HStack>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
Loading…
Reference in New Issue