This commit is contained in:
Andrey Bondarenko
2021-01-25 19:02:37 +10:00
parent cfd4dd9109
commit 4eb88f3e20
2 changed files with 3 additions and 2 deletions

View File

@@ -73,8 +73,9 @@
[profile apply:[genderAttribute withValue:YMMGenderTypeFemale]];
}
if (configDict[@"age"] != nil) {
NSNumber *age = configDict[@"age"];
id<YMMBirthDateAttribute> birthDateAttribute = [YMMProfileAttribute birthDate];
[profile apply:[birthDateAttribute withAge:[configDict[@"age"] unsignedIntegerValue]]];
[profile apply:[birthDateAttribute withAge:[age unsignedIntegerValue]]];
}
if (configDict[@"isNotification"] != nil) {
id<YMMNotificationsEnabledAttribute> isNotificationAttribute = [YMMProfileAttribute notificationsEnabled];