()
| 1275 | age () { return utils.yearsSinceMonth(this.get('birthday')) } |
| 1276 | |
| 1277 | isRegisteredForAILeague () { |
| 1278 | // TODO: This logic could use some thinking about, and maybe an explicit field for when we want to be sure they have registered on purpose instead of happening to have these properties. |
| 1279 | if (!this.get('birthday')) { return false } |
| 1280 | if (!this.get('email')) { return false } |
| 1281 | if (this.get('unsubscribedFromMarketingEmails')) { return false } |
| 1282 | if (!this.get('emails')?.generalNews?.enabled) { return false } |
| 1283 | return true |
| 1284 | } |
| 1285 | |
| 1286 | shouldShowLevelAIChat () { |
| 1287 | if (utils.isOzaria) { |
no test coverage detected