Skip to content

Commit

Permalink
fix python dataclass issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VzxPLnHqr committed May 7, 2024
1 parent 1e05e4a commit ad55919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/seedsigner/views/view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import Type

from seedsigner.gui.components import FontAwesomeIconConstants, SeedSignerIconConstants
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit ad55919

Please sign in to comment.