pull/891/head
Ryan ZHAO 1 year ago
parent a967b4dfd0
commit c97b930816

@ -83,7 +83,7 @@ struct InviteAFriendScreen: View {
Spacer(minLength: Values.mediumSpacing) Spacer(minLength: Values.mediumSpacing)
Button { Button {
copyAccoounId() copyAccountId()
} label: { } label: {
let buttonTitle: String = self.copied ? "copied".localized() : "copy".localized() let buttonTitle: String = self.copied ? "copied".localized() : "copy".localized()
Text(buttonTitle) Text(buttonTitle)
@ -116,7 +116,7 @@ struct InviteAFriendScreen: View {
.backgroundColor(themeColor: .backgroundSecondary) .backgroundColor(themeColor: .backgroundSecondary)
} }
private func copyAccoounId() { private func copyAccountId() {
UIPasteboard.general.string = self.accountId UIPasteboard.general.string = self.accountId
self.copied = true self.copied = true
} }

Loading…
Cancel
Save