Skip to content

Commit 1109407

Browse files
authored
Merge pull request #2534 from IntersectMBO/staging
hotfix: matomo init
2 parents d7a17ec + 56aa382 commit 1109407

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

govtool/frontend/Dockerfile.qovery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG VITE_NETWORK_FLAG=0
88
ARG VITE_SENTRY_DSN
99
ARG NPMRC_TOKEN
1010
ARG VITE_USERSNAP_SPACE_API_KEY
11-
ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED='true'
11+
ARG VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED
1212
ARG VITE_PDF_API_URL
1313
ARG VITE_IPFS_GATEWAY
1414
ARG VITE_IPFS_PROJECT_ID

govtool/frontend/src/context/wallet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

govtool/frontend/src/hooks/useMatomo.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { useEffect } from "react";
77

88
export 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];

govtool/frontend/src/pages/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export * from "./GovernanceActionDetails";
1212
export * from "./GovernanceActions";
1313
export * from "./GovernanceActionsCategory";
1414
export * from "./Home";
15+
export * from "./ProposalDiscussion";
1516
export * from "./RegisterAsDirectVoter";
1617
export * from "./RegisterAsDirectVoter";
1718
export * from "./RegisterAsdRep";
1819
export * from "./RetireAsDirectVoter";
1920
export * from "./RetireAsDrep";
20-
export * from "./ProposalDiscussion";

0 commit comments

Comments
 (0)