Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Address review comment; always show receiving address in safer sign e…
Browse files Browse the repository at this point in the history
…ven when it's same as from address/account.
  • Loading branch information
StephenHeaps committed Dec 8, 2023
1 parent 57b1def commit 95d9bf9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ struct SaferSignTransactionView: View {
.fontWeight(.medium)
.foregroundColor(Color(.secondaryBraveLabel))
Spacer()
if let fromAddress, let receiverAddress,
receiverAddress.caseInsensitiveCompare(fromAddress) != .orderedSame {
if let receiverAddress {
AddressView(address: receiverAddress) {
HStack(spacing: 2) {
Blockie(address: receiverAddress)
.frame(width: 15, height: 15)
Text(namedReceiverAddress ?? "")
Text(namedReceiverAddress ?? receiverAddress.truncatedAddress)
.font(.footnote)
}
.padding(4)
Expand Down

0 comments on commit 95d9bf9

Please sign in to comment.