Few cleanups to code
This commit is contained in:
@@ -2,7 +2,6 @@ import { proxy, ref, subscribe } from "valtio";
|
||||
import { devtools } from 'valtio/utils'
|
||||
import type monaco from "monaco-editor";
|
||||
import { XrplClient } from "xrpl-client";
|
||||
import { addFaucetAccount } from "./actions/addFaucetAccount";
|
||||
|
||||
export interface IFile {
|
||||
name: string;
|
||||
@@ -116,17 +115,6 @@ client.on("offline", () => {
|
||||
state.clientStatus = "offline";
|
||||
});
|
||||
|
||||
|
||||
// fetch initial faucets
|
||||
(async function fetchFaucets() {
|
||||
if (state.accounts.length < 2) {
|
||||
await addFaucetAccount();
|
||||
setTimeout(() => {
|
||||
addFaucetAccount();
|
||||
}, 10000);
|
||||
}
|
||||
})();
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
devtools(state, "Files State");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user