File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ARG VITE_NETWORK_FLAG=0
88ARG VITE_SENTRY_DSN
99ARG NPMRC_TOKEN
1010ARG VITE_USERSNAP_SPACE_API_KEY
11- ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED='true'
11+ ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED
1212ARG VITE_PDF_API_URL
1313ARG VITE_IPFS_GATEWAY
1414ARG VITE_IPFS_PROJECT_ID
Original file line number Diff line number Diff line change @@ -403,7 +403,6 @@ const CardanoProvider = (props: Props) => {
403403 . to_hex ( ) ;
404404 } ) ;
405405 } else {
406- console . warn ( t ( "warnings.usingUnregisteredStakeKeys" ) ) ;
407406 stakeKeysList = unregisteredStakeKeysList . map ( ( key ) => {
408407 const stakeKeyHash = PublicKey . from_hex ( key ) . hash ( ) ;
409408 const stakeCredential = Credential . from_keyhash ( stakeKeyHash ) ;
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import { useEffect } from "react";
77
88export const useMatomo = ( ) => {
99 useEffect ( ( ) => {
10- const env = import . meta . env . VITE_APP_ENV ;
11- if ( env !== "prodction" || env !== "staging" ) {
12- return ;
13- }
10+ const isSancho = window . location . href . includes ( "sancho" ) ;
11+ if ( isSancho ) return ;
12+
13+ const network = import . meta . env . VITE_NETWORK_FLAG ;
1414 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1515 // @ts -expect-error
1616 const _paq = ( window . _paq = window . _pag || [ ] ) ;
@@ -19,7 +19,7 @@ export const useMatomo = () => {
1919 ( function ( ) {
2020 const u = "//analytics.gov.tools/" ;
2121 _paq . push ( [ "setTrackerUrl" , u + "matomo.php" ] ) ;
22- _paq . push ( [ "setSiteId" , env === "production" ? "1" : "2" ] ) ;
22+ _paq . push ( [ "setSiteId" , network === 1 ? "1" : "2" ] ) ;
2323 const d = document ;
2424 const g = d . createElement ( "script" ) ;
2525 const s = d . getElementsByTagName ( "script" ) [ 0 ] ;
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ export * from "./GovernanceActionDetails";
1212export * from "./GovernanceActions" ;
1313export * from "./GovernanceActionsCategory" ;
1414export * from "./Home" ;
15+ export * from "./ProposalDiscussion" ;
1516export * from "./RegisterAsDirectVoter" ;
1617export * from "./RegisterAsDirectVoter" ;
1718export * from "./RegisterAsdRep" ;
1819export * from "./RetireAsDirectVoter" ;
1920export * from "./RetireAsDrep" ;
20- export * from "./ProposalDiscussion" ;
You can’t perform that action at this time.
0 commit comments