Skip to content

Commit

Permalink
fix: stopwatch.Start() (#707)
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Vidosits <[email protected]>
Co-authored-by: Bence Vidosits <[email protected]>
  • Loading branch information
bevicted and Bence Vidosits authored Jan 22, 2025
1 parent 7ab08fb commit 1bdd4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stopwatch/stopwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (m Model) Init() tea.Cmd {

// Start starts the stopwatch.
func (m Model) Start() tea.Cmd {
return tea.Batch(func() tea.Msg {
return tea.Sequence(func() tea.Msg {
return StartStopMsg{ID: m.id, running: true}
}, tick(m.id, m.tag, m.Interval))
}
Expand Down

0 comments on commit 1bdd4c6

Please sign in to comment.