aboutsummaryrefslogtreecommitdiff
path: root/src/components/competition-element.js
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-19 03:02:16 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-19 03:02:16 -0400
commit98b0aa1092d8b46b621a7d9d2772aa972d6957b6 (patch)
tree3d37eb06889e0a7bf8ad92fe4bf091e6d24bc8a6 /src/components/competition-element.js
parent6603b409b2a712a48c3611782de560f442f8b241 (diff)
Made the website more interactive by adding alerts on successful and failed attempts when connecting to database. Also, dealt a bit with offline functionality.
Diffstat (limited to 'src/components/competition-element.js')
-rw-r--r--src/components/competition-element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/competition-element.js b/src/components/competition-element.js
index 67cc668..730b48e 100644
--- a/src/components/competition-element.js
+++ b/src/components/competition-element.js
@@ -84,7 +84,7 @@ class CompetitionElement extends LitElement {
}
registerComp() {
- if(confirm('Are you sure you want to register for ' + this.name + '?')) {
+ if(confirm('Are you sure you want to register for ' + this.name.replace(/[0-9]/g, '') + '?')) {
this.dispatchEvent(new CustomEvent('register-comp'));
}
}