Merge pull request #220 from plebbit/master

Development
This commit is contained in:
plebeius.eth
2023-08-30 16:57:03 +02:00
committed by GitHub
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const useFeedStateString = (subplebbits) => {
}
if (!subplebbits) {
return undefined;
return
}
const states = {}
+5
View File
@@ -1,6 +1,11 @@
import { useMemo } from 'react'
const useStateString = (commentOrSubplebbit) => {
// dont show state string if the data is already fetched
if (commentOrSubplebbit?.updatedAt || commentOrSubplebbit?.state === 'succeeded') {
return
}
return useMemo(() => {
if (!commentOrSubplebbit?.clients) {
return