diff --git a/src/seedsigner/views/view.py b/src/seedsigner/views/view.py index a5c4800c6..a7c83d49d 100644 --- a/src/seedsigner/views/view.py +++ b/src/seedsigner/views/view.py @@ -1,4 +1,4 @@ -from dataclasses import dataclass +from dataclasses import dataclass, field from typing import Type from seedsigner.gui.components import FontAwesomeIconConstants, SeedSignerIconConstants @@ -313,7 +313,7 @@ class ErrorView(View): status_headline: str = None text: str = None button_text: str = None - next_destination: Destination = Destination(MainMenuView, clear_history=True) + next_destination: Destination = field(default_factory=lambda: Destination(MainMenuView, clear_history=True)) def run(self):