Skip to content

Commit 478d871

Browse files
chore(notificationManager): tweak order of shouldShow and hasShown
1 parent 440e92e commit 478d871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/upgrade/display/notificationManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class NotificationManager implements IUpgradeIssuesRenderer {
3838
}
3939
const issue = issues[0];
4040

41-
if (this.hasShown) {
41+
if (!this.shouldShow()) {
4242
return;
4343
}
44-
this.hasShown = true;
4544

46-
if (!this.shouldShow()) {
45+
if (this.hasShown) {
4746
return;
4847
}
48+
this.hasShown = true;
4949

5050
const prompt = buildFixPrompt(issue);
5151
const notificationMessage = buildNotificationMessage(issue);

0 commit comments

Comments
 (0)