Skip to content

Commit 93c8144

Browse files
committed
Fill userfeedback with user data if provided by SentryClient
1 parent 600d09c commit 93c8144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ios/UserFeedbackViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ protocol ViewModel {
2424
public var subTitle = "Our team has been notified. If you'd like to help, tell us what happened below."
2525

2626
public var nameLabel = "Name:"
27-
public var nameTextFieldValue = ""
27+
public var nameTextFieldValue = SentryClient.shared?.user?.username
2828

2929
public var emailLabel = "Email:"
30-
public var emailTextFieldValue = ""
30+
public var emailTextFieldValue = SentryClient.shared?.user?.email
3131

3232
public var commentsTextFieldPlaceholder = "I clicked X and then this happened ..."
3333
public var commentsTextFieldValue = ""

0 commit comments

Comments
 (0)