mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(codebase audit): preserve cleanup without regressions
Fix codebase audit regressions while preserving UI/UX behavior and adding review-driven hardening.
This commit is contained in:
@@ -47,7 +47,7 @@ const sanitizeSingleFeedLoadingState = (stateString?: string): string | undefine
|
||||
.replace(/\bloading thread\b/g, 'loading board');
|
||||
};
|
||||
|
||||
const useStateString = (commentOrCommunity: CommentOrCommunity): string | undefined => {
|
||||
const useStateString = (commentOrCommunity: CommentOrCommunity | undefined): string | undefined => {
|
||||
const { states: rawStates } = useClientsStates({ comment: commentOrCommunity }) as { states: States };
|
||||
|
||||
const debouncedStates = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user