Add rewards

This commit is contained in:
Misode
2019-12-29 01:59:17 +01:00
parent 4aba8f81e2
commit 738ae30f2b
4 changed files with 42 additions and 3 deletions

View File

@@ -370,7 +370,7 @@ function generateArray(data, struct) {
let $el = $('<div/>').addClass('mt-3');
let child = components.find(e => e.id === struct.values);
for (let i = 0; i < data.length; i += 1) {
let {out: outValue, component: $child} = generateObject(data[i], child, {header: true});
let {out: outValue, component: $child} = generateComponent(data[i], child, {header: true});
out.push(outValue);
$child.attr('data-index', i);
$child.removeAttr('data-type');