Skip to content

Commit b28b9ca

Browse files
committed
🐛 Fix a bug where the setUserAttribute API in iOS mixed the key attribute with the value and vice versa.
1 parent 0fbe741 commit b28b9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ - (dispatch_queue_t)methodQueue {
236236
[Instabug setReportCategoriesWithTitles:titles iconNames:names];
237237
}
238238

239-
RCT_EXPORT_METHOD(setUserAttribute:(NSString *)value withKey:(NSString *)key) {
239+
RCT_EXPORT_METHOD(setUserAttribute:(NSString *)key withValue:(NSString *)value) {
240240
[Instabug setUserAttribute:value withKey:key];
241241
}
242242

0 commit comments

Comments
 (0)