refactor: show loading state only on initial load

This commit is contained in:
zhom
2025-08-07 04:12:47 +04:00
parent a507a3daed
commit 9ba51cd4e3
+1 -1
View File
@@ -17,7 +17,7 @@ export function GroupBadges({
groups,
isLoading,
}: GroupBadgesProps) {
if (isLoading) {
if (isLoading && !groups.length) {
return (
<div className="flex flex-wrap gap-2 mb-4">
<div className="flex items-center gap-2 px-4.5 py-1.5 text-xs">