Skip to content

Commit

Permalink
[#80] add new network variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Feb 6, 2024
1 parent 6206d55 commit c073eb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion govtool/frontend/src/context/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ function CardanoProvider(props: Props) {
if (network != NETWORK) {
throw new Error(
t("errors.tryingConnectTo", {
network: network == 1 ? "testnet" : "mainnet",
networkFrom: network == 1 ? "mainnet" : "testnet",
networkTo: network != 1 ? "testnet" : "mainnet",
})
);
}
Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const en = {
somethingWentWrong: "Something went wrong",
useCardano: "useCardano must be used within a CardanoProvider",
tryingConnectTo:
"You are trying to connect with a wallet connected to {{network}}. Please adjust your wallet settings to connect to {{network}} or select a different wallet.",
"You are trying to connect with a wallet connected to {{networkFrom}}. Please adjust your wallet settings to connect to {{networkTo}} or select a different wallet.",
walletNoCIP30Nor90Support:
"Your wallet does not support the required CIP-30 extension, CIP-95.",
walletNoCIP30Support: "Your wallet does not support CIP-30 extensions.",
Expand Down

0 comments on commit c073eb9

Please sign in to comment.