From 7169366d11d433f6e30c4c213a8f9bcf0a02685c Mon Sep 17 00:00:00 2001 From: Esteban Abaroa Date: Sat, 23 Sep 2023 21:21:22 +0000 Subject: [PATCH] fix(usestatestring): don't show updating state if comment/subplebbit is succeeded --- src/hooks/useStateString.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useStateString.js b/src/hooks/useStateString.js index cc830cea..5cca9426 100644 --- a/src/hooks/useStateString.js +++ b/src/hooks/useStateString.js @@ -37,7 +37,7 @@ const useStateString = (commentOrSubplebbit) => { } // fallback to comment or subplebbit state when possible - if (!stateString) { + if (!stateString && commentOrSubplebbit?.state !== 'succeeded') { if (commentOrSubplebbit?.publishingState && commentOrSubplebbit?.publishingState !== 'stopped' && commentOrSubplebbit?.publishingState !== 'succeeded') { stateString = commentOrSubplebbit.publishingState; } else if (commentOrSubplebbit?.updatingState !== 'stopped' && commentOrSubplebbit?.updatingState !== 'succeeded') {