Skip to content

Commit

Permalink
revert some unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonwells committed Sep 17, 2024
1 parent d0d41ea commit 24280b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 5 additions & 1 deletion client/src/lib/components/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
operation.set({ success: true, hash });
})
.catch((error) => {
operation.set({ success: false, error, hash: "" });
if (error.toString().match("TypeError: Failed to fetch")) {
operation.set({success: false, error: "Could not connect to faucet server.", hash: "" });
} else {
operation.set({ success: false, error, hash: "" });
}
});
}
Expand Down
1 change: 0 additions & 1 deletion client/src/lib/utils/faucetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export async function faucetRequest(
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const result = await fetchResult.json();
if ("error" in result) {
console.error(result);
const errText: string = ("Assertion failed" in result) ?
"There was an unknown problem." :
result.error;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getNetworkData } from "../src/networkData";
import { config } from "./config";
import { getNetworkData } from "./networkData";

export function isAccountPrivileged(sender: string): boolean {
const networkName = config.Get("NETWORK");
Expand Down
6 changes: 2 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"baseUrl": "./",
"baseUrl": ".",
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
Expand All @@ -10,10 +10,8 @@
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./build",
"rootDir": "./",
"paths": {
"src/*": ["/src/*"],
"logger": ["/src/logger"]
"src/*": ["/src/*"]
},
"plugins": [
// Transform paths in output .js files
Expand Down

0 comments on commit 24280b6

Please sign in to comment.