fix bug with handling setCode
This commit is contained in:
parent
aff9352dc0
commit
f52ca306a5
@ -189,8 +189,11 @@ function App() {
|
|||||||
},
|
},
|
||||||
// On set code
|
// On set code
|
||||||
(code, variant) => {
|
(code, variant) => {
|
||||||
setVariant(code, variant);
|
if (variant === currentVariantIndex) {
|
||||||
setGeneratedCode(code);
|
setGeneratedCode(code);
|
||||||
|
}
|
||||||
|
|
||||||
|
setVariant(code, variant);
|
||||||
|
|
||||||
// TODO: How to deal with variants?
|
// TODO: How to deal with variants?
|
||||||
if (params.generationType === "create") {
|
if (params.generationType === "create") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user