Skip to content

Commit 01e7922

Browse files
committed
Only remove time of user on drop time
1 parent 26cd2df commit 01e7922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/hasTimes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class hasTimes extends Base {
8383
if(subMatch && subMatch[2]) created = moment(subMatch[2]);
8484

8585
// create a time string and a time object
86-
let timeString = match ? match[1] : (subMatch ? `-${subMatch[1]}` : `-${Time.toHumanReadable(timeSpent)}`);
86+
let timeString = match ? match[1] : (subMatch ? `-${subMatch[1]}` : `-${Time.toHumanReadable(timeUsers[note.author.username])}`);
8787
let time = new Time(null, created, note, this, this.config);
8888
time.seconds = Time.parse(timeString, 8, 5, 4);
8989

0 commit comments

Comments
 (0)