Fix crash when spamming "r" to remove account
Crash was: ``` │ /workspace/clive/clive/__private/ui/screens/dashboard/dashboard.py:348 in focus_other_row │ │ │ │ 345 │ @on(TrackedAccountRow.FocusOtherRow) ╭─────────────────── locals ───────────────────╮ │ │ 346 │ def focus_other_row(self, event: TrackedAccountRow.FocusOtherRow) -> None: │ event = FocusOtherRow() │ │ │ 347 │ │ rows = self.query(TrackedAccountRow) │ rows = <DOMQuery query='TrackedAccountRow'> │ │ │ ❱ 348 │ │ target_index = event.target_index % len(rows) │ self = Dashboard() │ │ │ 349 │ │ rows[target_index].focus() ╰──────────────────────────────────────────────╯ │ │ 350 │ │ │ 351 │ async def _update_account_containers(self, profile: Profile) -> None: │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ZeroDivisionError: integer modulo by zero ```
Loading
Please sign in to comment