Skip to content

Commit 3566b54

Browse files
authored
Trim message before displaying in snackbar
1 parent 4fdb8ca commit 3566b54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/infrastructure/notification.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class NotificationService {
146146
};
147147

148148
this.snackBar.dismiss();
149-
this.snackBar.open(message, 'Close', config);
149+
this.snackBar.open(message.trim(), 'Close', config);
150150
}
151151

152152
private formatCount(count: number, singular: string, plural?: string): string {
@@ -170,4 +170,4 @@ export class NotificationService {
170170
.filter((line): line is string => !!line)
171171
.join('\n');
172172
}
173-
}
173+
}

0 commit comments

Comments
 (0)