From 228198363e4b0a3067f81515c9f8d75b52c2e6cf Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 1 Oct 2019 21:50:57 +0200 Subject: [PATCH] :bug: (Refund Transaction) Fix toMe & fromMe variables --- package.json | 2 +- src/components/RefundTransaction.vue | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 530672b..4754db5 100644 --- a/package.json +++ b/package.json @@ -59,4 +59,4 @@ "typescript": "^3.5.3", "vue-template-compiler": "^2.6.10" } -} +} \ No newline at end of file diff --git a/src/components/RefundTransaction.vue b/src/components/RefundTransaction.vue index a6b831b..f0528b0 100644 --- a/src/components/RefundTransaction.vue +++ b/src/components/RefundTransaction.vue @@ -6,25 +6,33 @@ {{ refund.from.alias }} vous doit - {{ refund.amount | money(account.mainCurrency) }} + {{ + refund.amount | money(account.mainCurrency) + }} Vous devez - {{ refund.amount | money(account.mainCurrency) }} + {{ + refund.amount | money(account.mainCurrency) + }} à {{ refund.to.alias }} {{ refund.from.alias }} doit - {{ refund.amount | money(account.mainCurrency) }} + {{ + refund.amount | money(account.mainCurrency) + }} à {{ refund.to.alias }} @@ -122,14 +130,14 @@ export default class RefundTransaction extends Vue { if (!this.user || !this.refund.from) { return false } - return this.refund.from.email === this.user.email + return this.refund.from.userId === this.user.userId } public get toMe(): boolean { if (!this.user || !this.refund.to) { return false } - return this.refund.to.email === this.user.email + return this.refund.to.userId === this.user.userId } }