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