Skip to content

Commit 079edac

Browse files
author
Andreas Müller
committed
do not duplicate notes
1 parent c03fa63 commit 079edac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/dayReport.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class dayReport {
3939
this.spent += seconds;
4040
}
4141
addNote(note) {
42+
if(!this.notes.includes(note)) {
4243
this.notes.push(note);
44+
}
4345
}
4446
getChargeRatio() {
4547
return this.chargeRatio;

0 commit comments

Comments
 (0)