♻️ (transaction) quick refactoring
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user