diff --git a/apps/web/app/(app)/gardens/page.tsx b/apps/web/app/(app)/gardens/page.tsx
index 4efcfeeaf..3df5771b1 100644
--- a/apps/web/app/(app)/gardens/page.tsx
+++ b/apps/web/app/(app)/gardens/page.tsx
@@ -47,10 +47,26 @@ export default function Page() {
return (
<>
{tokenGardens
- .sort(
- (a, b) =>
- (b.communities?.length ?? 0) - (a.communities?.length ?? 0),
- )
+ .sort((a, b) => {
+ const communitiesDiff =
+ (b.communities?.length ?? 0) - (a.communities?.length ?? 0);
+
+ if (communitiesDiff === 0) {
+ const aTotalMembers =
+ a.communities?.reduce(
+ (sum, community) => sum + (community.members?.length ?? 0),
+ 0,
+ ) ?? 0;
+ const bTotalMembers =
+ b.communities?.reduce(
+ (sum, community) => sum + (community.members?.length ?? 0),
+ 0,
+ ) ?? 0;
+ return bTotalMembers - aTotalMembers;
+ }
+
+ return communitiesDiff;
+ })
.map((garden) => (
diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx
index a45fb5107..c6ab3a32e 100644
--- a/apps/web/app/page.tsx
+++ b/apps/web/app/page.tsx
@@ -3,4 +3,4 @@ import { redirect } from "next/navigation";
export default function Page() {
redirect("/gardens");
-}
\ No newline at end of file
+}
diff --git a/apps/web/components/Forms/PoolForm.tsx b/apps/web/components/Forms/PoolForm.tsx
index a931b255a..1270424cf 100644
--- a/apps/web/components/Forms/PoolForm.tsx
+++ b/apps/web/components/Forms/PoolForm.tsx
@@ -194,7 +194,7 @@ export function PoolForm({ token, communityAddr }: Props) {
rulingTime: parseTimeUnit(DEFAULT_RULING_TIMEOUT_SEC, "seconds", "days"),
defaultResolution: 1,
minThresholdPoints: 0,
- poolTokenAddress: token.id,
+ poolTokenAddress: "",
proposalCollateral:
chain.id === polygon.id ?
defaultMaticProposalColateral
@@ -227,6 +227,7 @@ export function PoolForm({ token, communityAddr }: Props) {
const { isConnected, missmatchUrl, tooltipMessage } = useDisableButtons();
const watchedAddress = watch("poolTokenAddress").toLowerCase() as Address;
+
const { data: customTokenData } = useToken({
address: watchedAddress ?? "0x",
chainId: +chain,
@@ -711,7 +712,7 @@ export function PoolForm({ token, communityAddr }: Props) {
registerKey="maxAmount"
type="number"
placeholder="0"
- suffix={token.symbol}
+ suffix={customTokenData?.symbol}
/>
)}
diff --git a/apps/web/components/PoolCard.tsx b/apps/web/components/PoolCard.tsx
index a19c177ea..9e7f512d4 100644
--- a/apps/web/components/PoolCard.tsx
+++ b/apps/web/components/PoolCard.tsx
@@ -76,11 +76,18 @@ export function PoolCard({ pool, tokenGarden }: Props) {
icon={}
count={proposals.length}
label="proposals"
+ className={`${isEnabled ? "visible" : "invisible"}`}
/>
}
label="funds"
- className={`${poolType && PoolTypes[poolType] === "funding" ? "visible" : "invisible"}`}
+ className={`${
+ isEnabled ?
+ poolType && PoolTypes[poolType] === "funding" ?
+ "visible"
+ : "invisible"
+ : "invisible"
+ }`}
>
-