Skip to content

Commit 1f3397b

Browse files
committed
Merge branch 'jenn/frames' of https://github.com/getsentry/sentry-react-native into jenn/frames
2 parents fc00ccd + c4ee826 commit 1f3397b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RNSentry.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ + (BOOL)requiresMainQueueSetup {
138138
rejecter:(RCTPromiseRejectBlock)reject)
139139
{
140140

141-
if (!PrivateSentrySDKOnly.isFramesTrackingRunning) {
142-
resolve(nil);
143-
} else {
141+
if (PrivateSentrySDKOnly.isFramesTrackingRunning) {
144142
SentryScreenFrames *frames = PrivateSentrySDKOnly.currentScreenFrames;
145143

146144
if (frames == nil) {
@@ -152,6 +150,8 @@ + (BOOL)requiresMainQueueSetup {
152150
@"frozenFrames": [NSNumber numberWithLong:frames.frozen],
153151
@"slowFrames": [NSNumber numberWithLong:frames.slow],
154152
});
153+
} else {
154+
resolve(nil);
155155
}
156156
}
157157

0 commit comments

Comments
 (0)