diff --git a/components/account/tabs/interactions/InteractionsTabContent.tsx b/components/account/tabs/interactions/InteractionsTabContent.tsx index 78c421fd9cc562a1d90b6faacbafcc32bd67459f..f7e6256b149427d621f542cca113f4f37fab5059 100644 --- a/components/account/tabs/interactions/InteractionsTabContent.tsx +++ b/components/account/tabs/interactions/InteractionsTabContent.tsx @@ -46,13 +46,14 @@ const InteractionsTabContent: React.FC<InteractionsTabContentProps> = ({ } = useCommentSearch(props); const buildCommentSearchView = () => { - if (!isCommentSearchDataLoading && !commentSearchData?.total_operations) { + if (!commentSearchData) return; + if (!isCommentSearchDataFetching && !commentSearchData?.total_operations) { return ( <div> <NoResult /> </div> ); - } else if (isCommentSearchDataFetching && isCommentSearchDataLoading) { + } else if (isCommentSearchDataLoading || isCommentSearchDataFetching) { return ( <div className="flex justify-center text-center items-center"> <Loader2 className="animate-spin mt-1 text-text h-12 w-12 ml-3 ..." /> @@ -92,6 +93,7 @@ const InteractionsTabContent: React.FC<InteractionsTabContentProps> = ({ </CardHeader> <CardContent> <AccountPageInteractionSearch + setIsFiltersActive={setIsFiltersActive} isCommentSearchDataLoading={isCommentSearchDataFetching} /> </CardContent>