Skip to content

Commit 0f65aee

Browse files
author
César Pinto Castillo
committed
Updates Demo so it works with the new code
1 parent 7b30838 commit 0f65aee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Demo/ViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ViewController: UIViewController {
3333

3434
@IBAction func forceReloadUserStatus() {
3535
logStatusChange(string: "Force reload of user")
36-
CurrentUser.sharedInstance.currentStatus(forcedReload: true) { status in
36+
CurrentUser.sharedInstance.currentStatus(forcedReload: true) { status, error in
3737
self.logStatusChange(status: status)
3838
}
3939
}
@@ -42,15 +42,15 @@ class ViewController: UIViewController {
4242
logStatusChange(string: "Log user identifier")
4343
CurrentUser.sharedInstance.userIdentifier { userIdentifier, error in
4444
if let userIdentifier = userIdentifier {
45-
self.logStatusChange(string: "User identifier: \(userIdentifier.userIdentifierString)")
45+
self.logStatusChange(string: "User identifier: \(userIdentifier)")
4646
} else {
4747
self.logStatusChange(string: "Unable to get user identifier")
4848
}
4949
}
5050
}
5151

5252
@objc private func getUserStatus() {
53-
CurrentUser.sharedInstance.currentStatus { status in
53+
CurrentUser.sharedInstance.currentStatus { status, error in
5454
self.logStatusChange(status: status)
5555
}
5656
}

0 commit comments

Comments
 (0)