Skip to content

Commit 1bdd4c6

Browse files
bevictedBence Vidosits
and
Bence Vidosits
authored
fix: stopwatch.Start() (#707)
Signed-off-by: Bence Vidosits <[email protected]> Co-authored-by: Bence Vidosits <[email protected]>
1 parent 7ab08fb commit 1bdd4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stopwatch/stopwatch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (m Model) Init() tea.Cmd {
7575

7676
// Start starts the stopwatch.
7777
func (m Model) Start() tea.Cmd {
78-
return tea.Batch(func() tea.Msg {
78+
return tea.Sequence(func() tea.Msg {
7979
return StartStopMsg{ID: m.id, running: true}
8080
}, tick(m.id, m.tag, m.Interval))
8181
}

0 commit comments

Comments
 (0)