aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-03 16:31:36 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-03 16:31:36 -0400
commit37bad7137e3f64913705566f904938f98c4c88ef (patch)
tree002ae9e3f2959acebe224fe6c8e0d700b763e7a5 /src/components
parent9973b1d785c9d3c6c71ad149eb5ad5b65a6eb95d (diff)
Allowd for account page to show correct division based on data in database.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/mao-account.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/mao-account.js b/src/components/mao-account.js
index 7a654fd..e4a206e 100644
--- a/src/components/mao-account.js
+++ b/src/components/mao-account.js
@@ -103,7 +103,7 @@ class MaoAccount extends connect(store)(PageViewElement) {
<p>${props.userEmail.replace("@communityschoolnaples.org", "")}</p>
<h3>Divison</h3>
- <p>Mu</p>
+ <p>${props.divison}</p>
<h3 hidden="${props.registeredComps.length<1}">Registered Competitions</h3>
<div id="competition-list"></div>
@@ -149,15 +149,15 @@ class MaoAccount extends connect(store)(PageViewElement) {
static get properties() { return {
// This is the data from the store.
signedIn: Boolean,
- authMessage: String,
userEmail: String,
- registeredComps: Array
+ registeredComps: Array,
+ divison: String
}}
_stateChanged(state) {
this.signedIn = state.firebase.initialized;
- this.authMessage = state.firebase.authMessage;
this.userEmail = state.firebase.userEmail;
+ this.divison = state.firebase.divison;
this.registeredComps = state.firebase.registeredComps;
this.createCompetitionList( this.registeredComps);