Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Oct 18, 2024
1 parent 9b805a8 commit 78611e1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,9 @@ private class dydxVaultDepositWithdrawConfirmationViewPresenter: HostedViewPrese
switch transferType {
case .deposit:
viewModel.submitState = hasPreviouslyAcknowledgedVaultDepositTerms ? .enabled : .disabled
case .withdraw:
viewModel.submitState = .loading
}

switch transferType {
case .deposit:
viewModel.requiresAcknowledgeVaultTos = !hasPreviouslyAcknowledgedVaultDepositTerms
case .withdraw:
viewModel.submitState = .loading
viewModel.requiresAcknowledgeVaultTos = false
}
}
Expand Down

0 comments on commit 78611e1

Please sign in to comment.