Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes register button error #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/views/Landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<Button text="See Challenges" class="primary-cta"
/></router-link>
<router-link style="text-decoration: none" v-else to="/register">
<Button text="Register Now" class="primary-cta"
/></router-link>
<div class="primary-cta">Register Now</div>
</router-link>
</div>
<div class="event-info-img">
<img class="landing-img" src="@/assets/landing1.svg" />
Expand Down Expand Up @@ -56,20 +56,20 @@ import LoginUser from "../api/admin/authAPI.js";
export default {
name: "home",
components: {
Button
Button,
},
props: ["fetchedData", "configs"],
data() {
return {
configData: {}
configData: {},
};
},
beforeCreate() {
this.$store.commit("updateCurrentPage", "userAboutCTF");
},
mounted() {
if (!this.fetchedData) {
ConfigApiService.getConfigs().then(response => {
ConfigApiService.getConfigs().then((response) => {
this.configData = response.data;
});
} else {
Expand All @@ -88,8 +88,8 @@ export default {
return moment(time, "HH:mm:ss UTC: Z, DD MMMM YYYY, dddd").format(
"HH:mm:ss UTC: Z, Do MMMM YYYY, dddd"
);
}
}
},
},
};
</script>

Expand Down