From 0f388f5b93962f05e895e80c61579a869b782e09 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 4 Apr 2020 22:09:38 +0200 Subject: [PATCH] :bug: (account) fix account being saved on account setting page init --- src/components/ColorPicker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ColorPicker.vue b/src/components/ColorPicker.vue index e94f816..7c74a92 100644 --- a/src/components/ColorPicker.vue +++ b/src/components/ColorPicker.vue @@ -77,8 +77,8 @@ export default class ColorPicker extends Vue { @Watch('localColor') public onColorChange(color: string | null, oldColor: string | null) { - this.$emit('input', color) - if (oldColor !== color) { + if (this.color !== color) { + this.$emit('input', color) this.$emit('color-change') } }