diff --git a/components/user/UserCard.js b/components/user/UserCard.js index a3408b4a62a..7f5fe4ebcf0 100644 --- a/components/user/UserCard.js +++ b/components/user/UserCard.js @@ -1,6 +1,6 @@ import Link from "next/link"; import ReactMarkdown from "react-markdown"; - +import { abbreviateNumber } from "js-abbreviation-number"; import FallbackImage from "../FallbackImage"; export default function UserCard({ profile }) { @@ -18,6 +18,16 @@ export default function UserCard({ profile }) { className="rounded-full" fallback={profile.name} /> + {profile.displayStatsPublic && ( +
+
+ {abbreviateNumber(profile.views)} +
+
+ )}