Skip to content

Commit

Permalink
change visibility else case
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Nov 28, 2023
1 parent 9cf1e8c commit b7c1157
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class dydxProfileHeaderViewPresenter: HostedViewPresenter<dydxProfileHeaderViewM
self?.viewModel?.copyAction = {
UIPasteboard.general.string = cosmoAddress
}
} else {
self?.viewModel?.copyAction = nil
}
if let ethereumAddress = walletState.currentWallet?.ethereumAddress {
self?.viewModel?.openInEtherscanAction = {
Expand All @@ -61,7 +63,6 @@ class dydxProfileHeaderViewPresenter: HostedViewPresenter<dydxProfileHeaderViewM
}
}
} else {
self?.viewModel?.copyAction = nil
self?.viewModel?.openInEtherscanAction = nil
}
}
Expand Down

0 comments on commit b7c1157

Please sign in to comment.