diff --git a/.gitignore b/.gitignore
index 4211762..684d47a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
+
+
+.env
\ No newline at end of file
diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx
index 519d8e5..3616542 100644
--- a/src/components/SideBar.tsx
+++ b/src/components/SideBar.tsx
@@ -5,7 +5,7 @@ import { BugIcon, CubeIcon, UserIcon, StatusIcon } from "../icons";
const navigationItems = [
{
name: "Blockchain",
- to: "",
+ to: "blockchain",
svg:
},
{
@@ -20,7 +20,7 @@ const navigationItems = [
},
{
name: "Status",
- to: "status",
+ to: "",
svg:
}
];
diff --git a/src/routes/Blockchain.tsx b/src/routes/Blockchain.tsx
index 8ce265f..39dceb2 100644
--- a/src/routes/Blockchain.tsx
+++ b/src/routes/Blockchain.tsx
@@ -35,6 +35,25 @@ const Blockchain = () => {
];
}
+ let allEventsValid = true;
+
+ for (let i = 0; i < blockchainData.length; i++) {
+ const item = blockchainData[i];
+
+ if (!item.success || !item.failure) {
+ allEventsValid = false;
+ break;
+ }
+ }
+
+ if (!allEventsValid) {
+ return (
+
+ There are no Blockchain events
+
+ );
+ }
+
return (
{blockchainData.map(item => (
diff --git a/src/routes/Router.tsx b/src/routes/Router.tsx
index 8e39dad..df6b9c3 100644
--- a/src/routes/Router.tsx
+++ b/src/routes/Router.tsx
@@ -12,7 +12,7 @@ export const router = createHashRouter([
element:
,
children: [
{
- element:
,
+ element:
,
index: true
},
{
@@ -24,8 +24,8 @@ export const router = createHashRouter([
element:
},
{
- path: "status",
- element:
+ path: "blockchain",
+ element:
}
]
},
diff --git a/src/routes/User.tsx b/src/routes/User.tsx
index dd55cd1..a1d8214 100644
--- a/src/routes/User.tsx
+++ b/src/routes/User.tsx
@@ -46,6 +46,23 @@ const User = () => {
];
}
+ let allEventsValid = true;
+
+ for (let i = 0; i < userData.length; i++) {
+ const item = userData[i];
+
+ if (!item.success || !item.failure) {
+ allEventsValid = false;
+ break;
+ }
+ }
+
+ if (!allEventsValid) {
+ return (
+
There are no User events
+ );
+ }
+
return (
{userData.map(data => (