From aab4b8fb10d8e022834fdafe8ec5fb73dcb6017c Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 16 Feb 2024 16:58:29 +0100 Subject: [PATCH] better fix --- .../src/features/round/ViewRoundPage.tsx | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/round-manager/src/features/round/ViewRoundPage.tsx b/packages/round-manager/src/features/round/ViewRoundPage.tsx index 218ce1be8e..1aa62c18de 100644 --- a/packages/round-manager/src/features/round/ViewRoundPage.tsx +++ b/packages/round-manager/src/features/round/ViewRoundPage.tsx @@ -50,11 +50,11 @@ import moment from "moment"; import ApplicationsToApproveReject from "./ApplicationsToApproveReject"; import ApplicationsToReview from "./ApplicationsToReview"; -export const isDirectRound = (round: Round) => { - return ( - round && round.payoutStrategy.strategyName?.toLowerCase().includes("direct") - ); -}; +const ROUND_PAYOUT_DIRECT = "DIRECT"; +const ROUND_PAYOUT_MERKLE = "MERKLE"; + +export const isDirectRound = (round: Round) => + round && round.payoutStrategy.strategyName === ROUND_PAYOUT_DIRECT; export default function ViewRoundPage() { datadogLogs.logger.info("====> Route: /round/:id"); @@ -313,7 +313,10 @@ export default function ViewRoundPage() {