Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Nov 23, 2023
1 parent c204577 commit 9e500ca
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/src/lib/components/NavBar.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
<script lang="ts">
import { base } from "$app/paths";
import logo from "$lib/assets/logo.svg";
import { Networks, type NetworkData } from "$lib/utils/networkData";
function getCurrentNetwork(url: string): NetworkData {
const index = Networks.findIndex((n) => n.url === url);
if (index < 0) {
throw new Error(`Network for ${url} not found!`);
}
return Networks[index].network;
}
</script>
</script>

<div class="navigation-bar">
<div class="flex-1">
Expand Down

0 comments on commit 9e500ca

Please sign in to comment.