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 price = item === 'Rename' ? 5 : 1;
|
||||
return (
|
||||
<figure key={i} onClick={e => {
|
||||
<figure key={i * 2} onClick={e => {
|
||||
e.stopPropagation();
|
||||
setMtxActive(item);
|
||||
}}>
|
||||
@ -67,7 +67,7 @@ function Reshape(args) {
|
||||
};
|
||||
|
||||
const availableMtx = (item, i) => (
|
||||
<figure key={i}>
|
||||
<figure key={i * 2 + 1}>
|
||||
<figcaption>Enable {item.variant}</figcaption>
|
||||
<button onClick={() => mtxBuy(item)} disabled={account.balance < item.credits}>¤{item.credits}</button>
|
||||
</figure>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user