🐛 Fix a bug where the setUserAttribute API in iOS mixed the key attribute with the value and vice versa.

This commit is contained in:
Salma ElTarzi 2017-08-17 21:14:36 +02:00
parent 0fbe741d6b
commit b28b9caa56

View File

@ -236,7 +236,7 @@ RCT_EXPORT_METHOD(setReportCategories:(NSArray<NSString *> *)titles iconNames:(N
[Instabug setReportCategoriesWithTitles:titles iconNames:names];
}
RCT_EXPORT_METHOD(setUserAttribute:(NSString *)value withKey:(NSString *)key) {
RCT_EXPORT_METHOD(setUserAttribute:(NSString *)key withValue:(NSString *)value) {
[Instabug setUserAttribute:value withKey:key];
}