Skip to content

Instantly share code, notes, and snippets.

@dennda
Created July 10, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennda/1b47565da3731c0c98186414af6bbe26 to your computer and use it in GitHub Desktop.
Save dennda/1b47565da3731c0c98186414af6bbe26 to your computer and use it in GitHub Desktop.
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