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
}
}