aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-comments/use-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/hooks/use-comments/use-comments.ts')
-rw-r--r--src/utils/hooks/use-comments/use-comments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/hooks/use-comments/use-comments.ts b/src/utils/hooks/use-comments/use-comments.ts
index cb967a5..7c8f11e 100644
--- a/src/utils/hooks/use-comments/use-comments.ts
+++ b/src/utils/hooks/use-comments/use-comments.ts
@@ -36,7 +36,7 @@ export const useComments = <T extends Maybe<WPComment[]>>({
? buildCommentsTree(data.map(convertWPCommentToComment))
: undefined,
isError: !!error,
- isLoading,
+ isLoading: isLoading && !data,
isValidating,
} as UseCommentsReturn<T>;
};