diff --git a/package.json b/package.json index 077a9bb23..e133cc0f6 100644 --- a/package.json +++ b/package.json @@ -243,7 +243,7 @@ "ts-jest-resolver": "^2.0.1", "videostream": "^3.2.2", "web3": "1.2.4", - "web3-utils": "^1.2.4", + "web3-utils": "^4.2.1", "worker-url": "^1.1.0" }, "prec-commit": [ diff --git a/src/components/account/account.tsx b/src/components/account/account.tsx index f7b0c14bf..7397851a7 100644 --- a/src/components/account/account.tsx +++ b/src/components/account/account.tsx @@ -104,7 +104,8 @@ function Account({ }} > {avatar && ( -
{error.message}
+no {getFilterText(filter)} chats
diff --git a/src/features/sense/ui/SenseList/SenseListItem/SenseListItem.container.tsx b/src/features/sense/ui/SenseList/SenseListItem/SenseListItem.container.tsx index 80330ed70..d63c6e56d 100644 --- a/src/features/sense/ui/SenseList/SenseListItem/SenseListItem.container.tsx +++ b/src/features/sense/ui/SenseList/SenseListItem/SenseListItem.container.tsx @@ -2,7 +2,7 @@ import useParticleDetails from '../../../../particle/useParticleDetails'; import { selectCurrentAddress } from 'src/redux/features/pocket'; import { useAppSelector } from 'src/redux/hooks'; import { contentTypeConfig } from 'src/containers/Search/Filters/Filters'; -import { Dots } from 'src/components'; +import { Account, Dots } from 'src/components'; import SenseListItem from './SenseListItem'; import { formatSenseItemDataToUI } from '../../utils/format'; import { SenseItemId } from 'src/features/sense/types/sense'; @@ -29,8 +29,15 @@ function SenseListItemContainer({ senseItemId }: Props) { }); const address = useAppSelector(selectCurrentAddress); - const { timestamp, amount, cid, text, isAmountSendToMyAddress } = - formatSenseItemDataToUI(senseData, address, senseItemId); + const { + timestamp, + amount, + cid, + text, + isAmountSendToMyAddress, + isFollow, + from, + } = formatSenseItemDataToUI(senseData, address, senseItemId); const particle = isParticle(senseItemId); @@ -52,10 +59,33 @@ function SenseListItemContainer({ senseItemId }: Props) { ); } else if (data) { - content = - data.text?.replaceAll('#', '') || - contentTypeConfig[data.type]?.label || - 'unsupported type'; + if (isFollow) { + content = ( +