♻️ (transaction) quick refactoring

This commit is contained in:
Julien Calixte
2020-04-10 22:13:37 +02:00
parent 92a63e9616
commit 8a76042625

View File

@@ -444,11 +444,9 @@ export default class TransactionCreate extends Vue {
return false return false
} }
if (isNaN(this.amount) || this.amount > this.maxAmount) { if (isNaN(this.amount) || this.amount > this.maxAmount) {
const maxAmount = money(this.maxAmount, this.currency)
notif.error( notif.error(
`Veuillez saisir un montant numérique inférieur à ${money( `Veuillez saisir un montant numérique inférieur à ${maxAmount}.`
this.maxAmount,
this.currency
)}.`
) )
return false return false
} }