fix reshape available mtx bug
This commit is contained in:
parent
dffb4e7221
commit
4c0a9088a1
@ -56,7 +56,7 @@ function Reshape(args) {
|
|||||||
const useMtx = (item, i) => {
|
const useMtx = (item, i) => {
|
||||||
const price = item === 'Rename' ? 5 : 1;
|
const price = item === 'Rename' ? 5 : 1;
|
||||||
return (
|
return (
|
||||||
<figure key={i} onClick={e => {
|
<figure key={i * 2} onClick={e => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setMtxActive(item);
|
setMtxActive(item);
|
||||||
}}>
|
}}>
|
||||||
@ -67,7 +67,7 @@ function Reshape(args) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const availableMtx = (item, i) => (
|
const availableMtx = (item, i) => (
|
||||||
<figure key={i}>
|
<figure key={i * 2 + 1}>
|
||||||
<figcaption>Enable {item.variant}</figcaption>
|
<figcaption>Enable {item.variant}</figcaption>
|
||||||
<button onClick={() => mtxBuy(item)} disabled={account.balance < item.credits}>¤{item.credits}</button>
|
<button onClick={() => mtxBuy(item)} disabled={account.balance < item.credits}>¤{item.credits}</button>
|
||||||
</figure>
|
</figure>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user