Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
woin2ee committed Jan 31, 2024
2 parents 1d8b184 + b3f17e0 commit e6cd17e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog/1.5.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Fixed
- Fixed a bug that caused the app to crash when the list button was touched when no words were displayed.
6 changes: 5 additions & 1 deletion Sources/iOSScenes/WordList/WordListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ final class WordListViewController: RxBaseViewController, WordListViewController
self.tabBarController?.rx.didSelect
.asSignal()
.emit(with: self) { owner, selectedViewController in
if selectedViewController == self.navigationController {
guard selectedViewController == self.navigationController else {
return
}

if owner.wordListTableView.visibleCells.count != 0 {
owner.wordListTableView.scrollToRow(at: .init(row: 0, section: 0), at: .bottom, animated: true)
}
}
Expand Down

0 comments on commit e6cd17e

Please sign in to comment.