diff --git a/src/components/participant/ActionInputs/MoonbeamErc721.vue b/src/components/participant/ActionInputs/MoonbeamErc721.vue
index 7491b819..042bde38 100644
--- a/src/components/participant/ActionInputs/MoonbeamErc721.vue
+++ b/src/components/participant/ActionInputs/MoonbeamErc721.vue
@@ -120,7 +120,7 @@ export default {
methods: {
checkWeb3Injection() {
try {
- if (ethereum && ethereum.isMetaMask) {
+ if (window.ethereum && window.ethereum.isMetaMask) {
this.web3 = new Web3(window.ethereum);
}
diff --git a/src/components/participant/Banner.vue b/src/components/participant/Banner.vue
index 6850a582..0acbb8f7 100644
--- a/src/components/participant/Banner.vue
+++ b/src/components/participant/Banner.vue
@@ -27,7 +27,7 @@ export default {
},
methods: {
onBannerError(e) {
- console.log(e.message);
+ console.error(e);
this.brokenUrl = true
}
}
diff --git a/src/components/participant/Metrics.vue b/src/components/participant/Metrics.vue
index 78f8477d..fa6c39d9 100644
--- a/src/components/participant/Metrics.vue
+++ b/src/components/participant/Metrics.vue
@@ -1,3 +1,8 @@
+
@@ -18,8 +23,8 @@
Days Left
-
-
+
+
diff --git a/src/router.js b/src/router.js
index 11c54f76..fbf9e186 100644
--- a/src/router.js
+++ b/src/router.js
@@ -56,6 +56,13 @@ const router = new Router({
component: () => import(/* webpackChunkName: "adminLogin" */ './views/admin/AdminLogin.vue'),
meta: () => ({ requiresAuth: true, title: 'Hyperfyre - Admin Login' ,tabbar: false })
+ },
+ {
+ path: "/404",
+ name: "PageNotFound",
+
+ component: () => import(/* webpackChunkName: "adminLogin" */ './views/404.vue'),
+
},
{
path: "/admin/dashboard",
diff --git a/src/views/404.vue b/src/views/404.vue
new file mode 100644
index 00000000..381f4f7a
--- /dev/null
+++ b/src/views/404.vue
@@ -0,0 +1,7 @@
+
+
+
404: Page Not Found
+
+
+
+
\ No newline at end of file
diff --git a/src/views/admin/CreateApp.vue b/src/views/admin/CreateApp.vue
index 9dc1bdeb..fe92a92c 100644
--- a/src/views/admin/CreateApp.vue
+++ b/src/views/admin/CreateApp.vue
@@ -276,7 +276,7 @@ this.getApp();
this.clearselected();
},
editbtn(row){
- console.log(row);
+ //console.log(row);
this.isEdit= true;
this.app = {...row};
this.app.toggle=false;
diff --git a/src/views/admin/Participants.vue b/src/views/admin/Participants.vue
index 308f35df..a554bc54 100644
--- a/src/views/admin/Participants.vue
+++ b/src/views/admin/Participants.vue
@@ -400,7 +400,8 @@ export default {
this.selectedProjectId = this.$route.query.projectId;
this.selectedProject = this.$route.query.projectId;
this.investor.projectId = this.$route.query.projectId;
- this.fetchProjectData(0, this.perPage);
+ await this.fetchProjectData(0, this.perPage);
+ this.holdInvestors = this.project.investors;
}
const userProjectStr = localStorage.getItem("userProjects");
diff --git a/src/views/participant/Event.vue b/src/views/participant/Event.vue
index 90b6ebdd..f83b000c 100644
--- a/src/views/participant/Event.vue
+++ b/src/views/participant/Event.vue
@@ -131,6 +131,9 @@ export default {
await this.fetchUserInfoOnLogin();
}
}catch(e){
+ if(e && e.indexOf("No event found for id or slug =") >= 0){
+ this.$router.push("/404")
+ }
this.notifyErr(Messages.EVENT.ERROR_OCCURED+ e.message);
}
},
@@ -194,15 +197,9 @@ export default {
"Content-Type": "application/json",
};
const resp = await apiClient.makeCall({ method: "GET", url: url, header: headers })
-
this.eventData = {
...resp.data
}
-
-
-
-
-
} else {
this.notifyErr(Messages.EVENT.INVALID_PROJECT_SLUG)
}
@@ -255,7 +252,6 @@ export default {
header: headers,
method: "GET",
})
-
if(res.data.length === 0){
// a user can participate in event
// Participate in event