Skip to content

Commit 9d1d422

Browse files
committed
feat: removed unnecessary if statement
1 parent 9982c7e commit 9d1d422

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/routes/(console)/bottomAlerts.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ if (isCloud) {
3232
},
3333
show: true
3434
};
35-
if (csvImportPromo.show) {
36-
listOfPromotions.push(csvImportPromo);
37-
setMobileSingleAlertLayout({
38-
title: csvImportPromo.title,
39-
message: csvImportPromo.message,
40-
enabled: true,
41-
cta: {
42-
link: csvImportPromo.cta.link,
43-
external: csvImportPromo.cta.external,
44-
hideOnClick: csvImportPromo.cta.hideOnClick
45-
}
46-
});
47-
}
35+
36+
listOfPromotions.push(csvImportPromo);
37+
38+
setMobileSingleAlertLayout({
39+
title: csvImportPromo.title,
40+
message: csvImportPromo.message,
41+
enabled: true,
42+
cta: {
43+
link: csvImportPromo.cta.link,
44+
external: csvImportPromo.cta.external,
45+
hideOnClick: csvImportPromo.cta.hideOnClick
46+
}
47+
});
4848
}
4949

5050
export function addBottomModalAlerts() {

0 commit comments

Comments
 (0)