🐛 fix(genericModal/index.tsx): move setValue(inputValue) before the switch statement to ensure proper value assignment
This commit is contained in:
parent
798be36cd8
commit
5dc73b41b6
1 changed files with 1 additions and 1 deletions
|
|
@ -282,9 +282,9 @@ export default function GenericModal({
|
|||
<Button
|
||||
className="mt-3"
|
||||
onClick={() => {
|
||||
setValue(inputValue);
|
||||
switch (myModalType) {
|
||||
case 1:
|
||||
setValue(inputValue);
|
||||
setModalOpen(false);
|
||||
break;
|
||||
case 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue