🐛 (account) fix account being saved on account setting page init

This commit is contained in:
Julien Calixte
2020-04-04 22:09:38 +02:00
parent 4618746cef
commit 0f388f5b93

View File

@@ -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')
}
}