-
-
Save dennda/1b47565da3731c0c98186414af6bbe26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m | |
index 585b7cfac..b44530f2e 100644 | |
--- a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m | |
+++ b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m | |
@@ -704,9 +704,11 @@ - (BOOL)shouldAutorotate | |
- (BOOL)allowDisplayOfCharacters | |
{ | |
+ DUOUser *user = self.userClient.user; | |
+ | |
return self.showPlusCharactersAsPromotion | |
|| self.userClient.user.hasPlus | |
- || ![DUOPlusCharactersClient plusCharactersExperimentEnabledWithUser:self.userClient.user]; | |
+ || (user != nil && ![DUOPlusCharactersClient plusCharactersExperimentEnabledWithUser:user]); | |
} | |
- (BOOL)currentElementHasCharacters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment