Skip to content

Commit

Permalink
Hide submit report button until there is a recording.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcraciunoiu committed Apr 23, 2024
1 parent 55680d7 commit 66b2a8e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ struct RecordView: View {

VStack {

MainButton(text: Strings.submitTitle, type: .action) {
viewModel.submitRecording()
if viewModel.didUpdateMainField {
MainButton(text: Strings.submitTitle, type: .action) {
viewModel.submitRecording()
}
}

if viewModel.didUpdateMainField {
Expand Down

0 comments on commit 66b2a8e

Please sign in to comment.