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