Skip to content

Instantly share code, notes, and snippets.

@dennda
Created Jul 10, 2018
Embed
What would you like to do?
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