Skip to content

Commit

Permalink
fix(#1866): fix formatting governance action id
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Aug 30, 2024
1 parent 42631f8 commit e1366e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ changes.
- Fix displaying non relevant data in protocol parameter change Governance Action [Issue 1601](https://github.com/IntersectMBO/govtool/issues/1601)
- Fix voting on info actions in bootstrapping phase [Issue 1876](https://github.com/IntersectMBO/govtool/issues/1876)
- Fix missing DRep name whitespace validation [Issue 1873](https://github.com/IntersectMBO/govtool/issues/1873)
- Fix displaying wrongly formatted Governance Action ID [Issue 1866](https://github.com/IntersectMBO/govtool/issues/1866k)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
getProposalTypeLabel,
filterUpdatableProtocolParams,
filterOutNullParams,
getFullGovActionId,
} from "@utils";
import { MetadataValidationStatus, ProposalData } from "@models";
import { GovernanceActionType } from "@/types/governanceAction";
Expand Down Expand Up @@ -125,10 +126,10 @@ export const GovernanceActionDetailsCardData = ({
};

const label = getProposalTypeLabel(type);
const govActionId = `${index}${txHash}`;
const govActionId = getFullGovActionId(txHash, index);
const prevGovActionId =
prevGovActionIndex && prevGovActionTxHash
? `${prevGovActionIndex}${prevGovActionTxHash}`
? getFullGovActionId(prevGovActionTxHash, prevGovActionIndex)
: null;

const tabs = useMemo(
Expand Down

0 comments on commit e1366e8

Please sign in to comment.