@ -4,8 +4,7 @@ import axios from "axios";
export default function BlockList() {
let [blocks, setBlocks] = useState([]);
let backendUrl: string =
process.env.BACKEND_ADDRESS || "http://localhost:42000/";
let backendUrl = process.env.BACKEND_ADDRESS!;
if (backendUrl === undefined) {
throw Error("backend address not specified in ENV variable");