Skip to content

Commit 13cc3aa

Browse files
committed
fix: typo and tea.Quit
1 parent d0d1e61 commit 13cc3aa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

models/initia/run_l1_node.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ func (m *SyncMethodSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
961961
case NoSync:
962962
m.state.weave.PushPreviousResponse(styles.RenderPreviousResponse(styles.ArrowSeparator, m.GetQuestion(), []string{""}, string(*selected)))
963963
// TODO: What if there's existing /data. Should we also prune it here?
964-
return NewTerminalState(m.state), cmd
964+
return NewTerminalState(m.state), tea.Quit
965965
case Snapshot, StateSync:
966966
m.state.weave.PushPreviousResponse(styles.RenderPreviousResponse(styles.ArrowSeparator, m.GetQuestion(), []string{""}, string(*selected)))
967967
model := NewExistingDataChecker(m.state)
@@ -973,7 +973,6 @@ func (m *SyncMethodSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
973973
}
974974

975975
func (m *SyncMethodSelect) View() string {
976-
// TODO: Render No Sync terminal state
977976
return m.state.weave.Render() + styles.RenderPrompt(
978977
m.GetQuestion(),
979978
[]string{""},
@@ -1407,10 +1406,10 @@ func (m *TerminalState) Init() tea.Cmd {
14071406
}
14081407

14091408
func (m *TerminalState) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
1410-
return m, tea.Quit
1409+
return m, nil
14111410
}
14121411

14131412
func (m *TerminalState) View() string {
1414-
// TODO: revisit congraturation text
1413+
// TODO: revisit congratulations text
14151414
return m.state.weave.Render() + "🪢🪢🪢 " + styles.FadeText("Success") + " 🪢🪢🪢\n"
14161415
}

0 commit comments

Comments
 (0)