Skip to content

Commit

Permalink
desperate times..
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Mar 11, 2024
1 parent 1bbf2af commit 9958d76
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
yarn lint --max-warnings=0
prettier --check "src/**/*.(tsx|ts)"
- name: Pretend we have data.json and run tests
- name: Pretend we have chains.json and run tests
run: cp public/test-file.json src/chains.json && yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metadata-portal",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "https://centrifuge.github.io/metadata-portal",
"private": true,
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./components/App";

// Assert that the element is non-null with `!`
const container = document.getElementById("root")!;
// Now TypeScript knows `container` is not null
const root = createRoot(container);

root.render(
Expand Down
1 change: 1 addition & 0 deletions src/scheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function getChains(): Chains {
const chainList = Object.values(jsonData).map((chain: object) =>
Object.assign({} as ChainSpec, chain)
);

return chainList.reduce((obj: Chains, chain: ChainSpec) => {
return {
...obj,
Expand Down

0 comments on commit 9958d76

Please sign in to comment.