Skip to content

Commit 451b423

Browse files
authored
Merge pull request #4011 from IntersectMBO/fix_live_voting_to_outcomes_redirect
Fix Live Voting GA to Outcomes redirect
2 parents 74c7a24 + e68b1a0 commit 451b423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const DashboardGovernanceActionDetails = () => {
101101
useEffect(() => {
102102
const isProposalNotFound =
103103
error instanceof AxiosError &&
104-
error.response?.data.match(/Proposal with id: .* not found/);
104+
error.response?.data.message.match(/Proposal with id: .* not found/);
105105
if (isProposalNotFound && fullProposalId) {
106106
navigate(
107107
OUTCOMES_PATHS.governanceActionOutcomes.replace(":id", fullProposalId),

govtool/frontend/src/pages/GovernanceActionDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const GovernanceActionDetails = () => {
9595
useEffect(() => {
9696
const isProposalNotFound =
9797
error instanceof AxiosError &&
98-
error.response?.data.match(/Proposal with id: .* not found/);
98+
error.response?.data.message.match(/Proposal with id: .* not found/);
9999
if (isProposalNotFound && fullProposalId) {
100100
navigate(
101101
OUTCOMES_PATHS.governanceActionOutcomes.replace(":id", fullProposalId),

0 commit comments

Comments
 (0)