Hotfix for the broken animation

This commit is contained in:
Lukas Korba 2022-03-04 13:23:58 +01:00
parent 05554dabdf
commit 6380452780
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,8 @@ import SwiftUI
import ComposableArchitecture
struct ValidationFailedView: View {
@Environment(\.presentationMode) var presentationMode
var store: RecoveryPhraseValidationStore
var body: some View {
@ -48,7 +50,10 @@ struct ValidationFailedView: View {
}
Button(
action: { viewStore.send(.reset) },
action: {
viewStore.send(.reset)
presentationMode.wrappedValue.dismiss()
},
label: { Text("validationFailed.button.tryAgain") }
)
.activeButtonStyle