kopia lustrzana https://github.com/cheeaun/phanpy
Fix NaN
rodzic
79fd5109b2
commit
d01f4823fa
|
@ -383,7 +383,7 @@ function Notification({
|
||||||
|
|
||||||
if (typeof text === 'function') {
|
if (typeof text === 'function') {
|
||||||
const count =
|
const count =
|
||||||
type === 'favourite' || type === 'reblog'
|
(type === 'favourite' || type === 'reblog') && notificationsCount
|
||||||
? notificationsCount
|
? notificationsCount
|
||||||
: _accounts?.length || sampleAccounts?.length || (account ? 1 : 0);
|
: _accounts?.length || sampleAccounts?.length || (account ? 1 : 0);
|
||||||
const postsCount = _statuses?.length || (status ? 1 : 0);
|
const postsCount = _statuses?.length || (status ? 1 : 0);
|
||||||
|
|
Ładowanie…
Reference in New Issue