Skip to content

Commit

Permalink
fix: additional tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenFluin committed Sep 10, 2024
1 parent 2c42862 commit 19ee21b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/components/keplr/add-custom-keplr.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
export default ({
settings: any = null,
providedSettings = null,
title = "Add Custom Chain Config",
}) => {
let settings;
const addNetwork = async () => {
if (!settings) {
if (!providedSettings) {
let field = document.getElementById("keplr_wallet_json_configuration");
console.log("field", field);

// re-layout the field
try {
const ugly = field.value;
document.getElementById("keplr_wallet_json_configuration").value =
Expand Down Expand Up @@ -33,6 +36,8 @@ export default ({
alert(error.message);
}
}
} else {
settings = providedSettings;
}
console.log("settings were determined to be", settings);

Expand Down
1 change: 0 additions & 1 deletion src/pages/resources/keplr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import Form from "../../components/textarea";
| Terra-2 | <AddKeplr client:only environment="testnet" chain="terra" /> | <AddKeplr client:only environment="mainnet" chain="terra" /> |

## Add your custom network
<button onclick="alert(x)">Hi there!</button>
<Form />
<AddCustomKeplr client:only></AddCustomKeplr>
<AddCustomKeplr client:only title="Amplifier Devnet"></AddCustomKeplr>

0 comments on commit 19ee21b

Please sign in to comment.