Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'fix/trimming-hashtag-after-autocomplete-selection'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewVebster committed May 11, 2021
2 parents 695bc71 + ae3f38e commit a66900b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,6 @@ final class TimerViewModel: NSObject {
// User has selected an autocomplete item.
// It could be a time entry, a task or a project.

if let newDescription = autocompleteItem.description {
entryDescription = newDescription
if timeEntry.isRunning() {
saveCurrentDescription()
}
}

fillEntryProject(from: autocompleteItem)

selectedTags = autocompleteItem.tags ?? []
Expand All @@ -549,6 +542,13 @@ final class TimerViewModel: NSObject {
} else {
billableState = .unavailable
}

if let newDescription = autocompleteItem.description {
entryDescription = newDescription
if timeEntry.isRunning() {
saveCurrentDescription()
}
}
}

private func fillEntryProject(from autocompleteItem: AutocompleteItem) {
Expand Down

0 comments on commit a66900b

Please sign in to comment.