From ee00a2f49cda76fb673f258dcacf49b584323b39 Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Tue, 6 Feb 2024 10:33:03 +0200 Subject: [PATCH] remove shortened scalar value --- components/outcomes/ScalarDisputeBox.tsx | 4 ---- components/outcomes/ScalarReportBox.tsx | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/components/outcomes/ScalarDisputeBox.tsx b/components/outcomes/ScalarDisputeBox.tsx index e9c629dcf..8df56066e 100644 --- a/components/outcomes/ScalarDisputeBox.tsx +++ b/components/outcomes/ScalarDisputeBox.tsx @@ -1,15 +1,11 @@ import { IndexerContext, isRpcSdk, Market } from "@zeitgeistpm/sdk"; import { MarketStatus } from "@zeitgeistpm/indexer"; import TransactionButton from "components/ui/TransactionButton"; -import Decimal from "decimal.js"; -import { ZTG } from "lib/constants"; import { useChainConstants } from "lib/hooks/queries/useChainConstants"; -import { useMarketDisputes } from "lib/hooks/queries/useMarketDisputes"; import { useExtrinsic } from "lib/hooks/useExtrinsic"; import { useSdkv2 } from "lib/hooks/useSdkv2"; import { useNotifications } from "lib/state/notifications"; import { useWallet } from "lib/state/wallet"; -import moment from "moment"; const ScalarDisputeBox = ({ market, diff --git a/components/outcomes/ScalarReportBox.tsx b/components/outcomes/ScalarReportBox.tsx index fae89e1b1..db3582ee5 100644 --- a/components/outcomes/ScalarReportBox.tsx +++ b/components/outcomes/ScalarReportBox.tsx @@ -175,13 +175,7 @@ const ScalarReportBox = ({ loading={isBroadcasting} > {scalarReportValue != null && scalarReportValue != "" && ( - <> - Report Outcome{" "} - {formatScalarOutcome( - new Decimal(scalarReportValue).mul(ZTG).toFixed(0), - market.scalarType as ScalarRangeType, - )} - + <>Report Outcome )}