From 8a76042625add34c4258eccba1cdb909e2e2817d Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Fri, 10 Apr 2020 22:13:37 +0200 Subject: [PATCH] :recycle: (transaction) quick refactoring --- src/components/TransactionCreate.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/TransactionCreate.vue b/src/components/TransactionCreate.vue index a2e1a62..aabd6a5 100644 --- a/src/components/TransactionCreate.vue +++ b/src/components/TransactionCreate.vue @@ -444,11 +444,9 @@ export default class TransactionCreate extends Vue { return false } if (isNaN(this.amount) || this.amount > this.maxAmount) { + const maxAmount = money(this.maxAmount, this.currency) notif.error( - `Veuillez saisir un montant numérique inférieur à ${money( - this.maxAmount, - this.currency - )}.` + `Veuillez saisir un montant numérique inférieur à ${maxAmount}.` ) return false }