Fix caracXP, chance, /payer

This commit is contained in:
2021-03-27 14:55:32 +01:00
parent 3582fa9c8a
commit 2972504640
2 changed files with 5 additions and 2 deletions

View File

@@ -553,7 +553,10 @@ export class RdDUtility {
// Gestion du bouton payer
html.on("click", '#payer-button', event => {
let sumdenier = event.currentTarget.attributes['data-somme-denier'].value;
let quantite = event.currentTarget.attributes['data-quantite'].value;
let quantite = 1;
if ( event.currentTarget.attributes['data-quantite'] ) {
quantite = event.currentTarget.attributes['data-quantite'].value;
}
let jsondata = event.currentTarget.attributes['data-jsondata']
let objData
if (jsondata) {