aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card_content/user_card_content.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-11-26 20:25:14 +0300
committerHenry Jameson <me@hjkos.com>2018-11-26 20:25:14 +0300
commitf039b79e5ac7da33c3664241e0d20d3c6964872f (patch)
tree781ca31fb9bb501311e3c79e8eda17fe148c0d8d /src/components/user_card_content/user_card_content.js
parentd64f4ab363b8fd8b6fe4542abe5f991178f4d3d4 (diff)
unbreak user profiles
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
-rw-r--r--src/components/user_card_content/user_card_content.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js
index 064c984d..e7ca21c7 100644
--- a/src/components/user_card_content/user_card_content.js
+++ b/src/components/user_card_content/user_card_content.js
@@ -12,7 +12,10 @@ export default {
},
computed: {
headingStyle () {
- const color = this.$store.state.config.customTheme.colors.bg
+ const color = this.$store.state.config.customTheme.colors ?
+ this.$store.state.config.customTheme.colors.bg : // v2
+ this.$store.state.config.colors.bg // v1
+
if (color) {
const rgb = (typeof color === 'string') ? hex2rgb(color) : color
const tintColor = `rgba(${Math.floor(rgb.r)}, ${Math.floor(rgb.g)}, ${Math.floor(rgb.b)}, .5)`