🐛 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
|
<Button
|
||||||
className="mt-3"
|
className="mt-3"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setValue(inputValue);
|
|
||||||
switch (myModalType) {
|
switch (myModalType) {
|
||||||
case 1:
|
case 1:
|
||||||
|
setValue(inputValue);
|
||||||
setModalOpen(false);
|
setModalOpen(false);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue