Skip to content

Commit

Permalink
fix voting page rulestext
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Jul 5, 2024
1 parent 08cdf4c commit eed35cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/elements/CardComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25695,6 +25695,7 @@ export default {
opaque: 1,
clicked: false,
keywordDescriptions: "",
rulesText: [],
textVisible: true,

FullArt: this.model.fullArt,
Expand Down Expand Up @@ -25731,15 +25732,16 @@ export default {
watch: {
model: {
handler() {
this.update();
this.rulesText = this.generateRulesText()
this.update()
},
deep: true,
},
},
created() {
this.rulesText = this.generateRulesText()
this.update()
this.textVisible = false
this.model.RulesTexts = this.generateRulesText()
},
mounted() {
this.textVisible = true;
Expand Down Expand Up @@ -26062,10 +26064,7 @@ export default {
},
getAbilityText() {
let additionalCostText = [];

let abc = R.concat(additionalCostText, this.model.RulesTexts);
console.log(this.model.RulesTexts);
return abc;
return this.rulesText ? R.concat(additionalCostText, this.rulesText) : []
},
textToSvg(text) {
if (!text) return text;
Expand Down

0 comments on commit eed35cf

Please sign in to comment.