aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card_content/user_card_content.vue
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@gmail.com>2017-06-19 11:32:40 +0300
committerShpuld Shpuldson <shpuld@gmail.com>2017-06-19 11:32:40 +0300
commit3785a863cb27af18fe91403189eff16f662dc2d0 (patch)
treeff1ee977f74e9516fec4ca0691b017ce6f7867ff /src/components/user_card_content/user_card_content.vue
parent143aa3b990c0e0fac98c4a097d68e9f7518f1940 (diff)
parent8e5d17a659b157f095ad3850ac3cdd2e537ac38b (diff)
Update branch and fix conflicts.
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
-rw-r--r--src/components/user_card_content/user_card_content.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue
index bba16584..ff1b108c 100644
--- a/src/components/user_card_content/user_card_content.vue
+++ b/src/components/user_card_content/user_card_content.vue
@@ -61,10 +61,13 @@
props: [ 'user' ],
computed: {
headingStyle () {
- let rgb = this.$store.state.config.colors['base00'].match(/\d+/g)
- return {
- backgroundColor: `rgb(${Math.floor(rgb[0] * 0.53)}, ${Math.floor(rgb[1] * 0.56)}, ${Math.floor(rgb[2] * 0.59)})`,
- backgroundImage: `url(${this.user.cover_photo})`
+ let color = this.$store.state.config.colors['base00']
+ if (color) {
+ let rgb = this.$store.state.config.colors['base00'].match(/\d+/g)
+ return {
+ backgroundColor: `rgb(${Math.floor(rgb[0] * 0.53)}, ${Math.floor(rgb[1] * 0.56)}, ${Math.floor(rgb[2] * 0.59)})`,
+ backgroundImage: `url(${this.user.cover_photo})`
+ }
}
},
bodyStyle () {