diff --git a/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx b/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx index 72242aa8..ec2ab14e 100755 --- a/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx +++ b/apps/vaults-v3/components/details/tabs/VaultDetailsStrategies.tsx @@ -27,7 +27,7 @@ export function VaultDetailsStrategies({currentVault}: {currentVault: TYDaemonVa for (const strategy of currentVault?.strategies || []) { _vaultList.push(vaults[strategy.address]); } - return _vaultList; + return _vaultList.filter(Boolean); }, [vaults, currentVault]); const strategyList = useMemo((): TYDaemonVaultStrategy[] => { @@ -64,22 +64,26 @@ export function VaultDetailsStrategies({currentVault}: {currentVault: TYDaemonVa ** sortDirection values. **********************************************************************************************/ const sortedVaultsToDisplay = useSortVaults([...searchedVaultsToDisplay], sortBy, sortDirection); + const isVaultListEmpty = sortedVaultsToDisplay.length === 0; return ( <> -
{'Search'}
-{'Search'}
+@@ -140,7 +144,7 @@ export function VaultDetailsStrategies({currentVault}: {currentVault: TYDaemonVa
{'Try another search term'}
diff --git a/apps/vaults-v3/components/list/VaultsV3ListHead.tsx b/apps/vaults-v3/components/list/VaultsV3ListHead.tsx index 13153784..c1491063 100644 --- a/apps/vaults-v3/components/list/VaultsV3ListHead.tsx +++ b/apps/vaults-v3/components/list/VaultsV3ListHead.tsx @@ -79,7 +79,7 @@ export function VaultsV3ListHead({items, sortBy, sortDirection, onSort}: TListHe -