Skip to content

Commit 9f50317

Browse files
committed
remove unneeded code
1 parent a6049e8 commit 9f50317

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/KymaModules/KymaModulesCreate.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,23 +389,20 @@ export default function KymaModulesCreate({ resource, ...props }) {
389389
};
390390

391391
const skipModuleFn = () => {
392-
const shouldShowManagedWarning = isManagedChanged;
393-
const shouldShowChannelWarning = showChannelChangeWarning;
394-
395-
if (shouldShowManagedWarning) {
392+
if (isManagedChanged) {
396393
setShowManagedBox({
397394
...showManagedBox,
398395
isOpen: true,
399396
onSave: true,
400397
});
401398
}
402-
if (shouldShowChannelWarning) {
399+
if (showChannelChangeWarning) {
403400
setShowMessageBox({
404401
...showMessageBox,
405402
isOpen: true,
406403
});
407404
}
408-
return shouldShowManagedWarning || shouldShowChannelWarning;
405+
return isManagedChanged || showChannelChangeWarning;
409406
};
410407

411408
return (

0 commit comments

Comments
 (0)