NSLog(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.");
NSLog(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.");
callback(@[RCTMakeError(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);
callback(@[RCTMakeError(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);
...
@@ -50,7 +51,6 @@
...
@@ -50,7 +51,6 @@
NSLog(@"An error occured saving the weight sample %@. In your app, try to handle this gracefully. The error was: %@.",weightSample,error);
NSLog(@"An error occured saving the weight sample %@. In your app, try to handle this gracefully. The error was: %@.",weightSample,error);
callback(@[RCTMakeError(@"An error occured saving the weight sample",nil,nil)]);
callback(@[RCTMakeError(@"An error occured saving the weight sample",nil,nil)]);
return;
return;
// abort();
}
}
callback(@[[NSNullnull],@(weight)]);
callback(@[[NSNullnull],@(weight)]);
}];
}];
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
// Query to get the user's latest BMI, if it exists.
// Query to get the user's latest BMI, if it exists.
NSLog(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.");
NSLog(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.");
callback(@[RCTMakeError(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);
callback(@[RCTMakeError(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);