aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-11-21 03:51:57 +0300
committerHenry Jameson <me@hjkos.com>2018-11-21 03:51:57 +0300
commitaa93664fd68e3fc27821fc1b03af25b6a6e6ae87 (patch)
treea4aef0af1a29c7e2265f75ddc3c3890722ed807d
parentb7fb720c190385b887ee7d7c3c46936e9a603862 (diff)
fix coldboot
-rw-r--r--src/components/user_card_content/user_card_content.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js
index eae436a9..4c7b6a68 100644
--- a/src/components/user_card_content/user_card_content.js
+++ b/src/components/user_card_content/user_card_content.js
@@ -5,9 +5,8 @@ export default {
props: [ 'user', 'switcher', 'selected', 'hideBio' ],
computed: {
headingStyle () {
- const color = this.$store.state.config.customTheme.colors.bg
- if (color) {
- const rgb = hex2rgb(color)
+ const rgb = this.$store.state.config.customTheme.colors.bg
+ if (rgb) {
const tintColor = `rgba(${Math.floor(rgb.r)}, ${Math.floor(rgb.g)}, ${Math.floor(rgb.b)}, .5)`
return {
backgroundColor: `rgb(${Math.floor(rgb.r * 0.53)}, ${Math.floor(rgb.g * 0.56)}, ${Math.floor(rgb.b * 0.59)})`,