Skip to content

Commit

Permalink
Merge pull request #2230 from zeitgeistpm/tr-scalar-report-units
Browse files Browse the repository at this point in the history
Remove shortened scalar value from button
  • Loading branch information
Robiquet authored Feb 7, 2024
2 parents 926b252 + ee00a2f commit cb8f4b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions components/outcomes/ScalarDisputeBox.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
8 changes: 1 addition & 7 deletions components/outcomes/ScalarReportBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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</>
)}
</TransactionButton>
</>
Expand Down

0 comments on commit cb8f4b0

Please sign in to comment.