Skip to content

Commit 16bad75

Browse files
authored
fix(remote-config, ios): avoid double-resolve when setting custom signals (#8312)
1 parent fa0b28a commit 16bad75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/remote-config/ios/RNFBConfig/RNFBConfigModule.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,9 @@ - (void)invalidate {
316316
if (error != nil) {
317317
[RNFBSharedUtils rejectPromiseWithNSError:reject error:error];
318318
} else {
319-
resolve(nil);
319+
resolve([self resultWithConstants:[NSNull null] firebaseApp:firebaseApp]);
320320
}
321321
}];
322-
323-
resolve([self resultWithConstants:[NSNull null] firebaseApp:firebaseApp]);
324322
}
325323

326324
#pragma mark -

0 commit comments

Comments
 (0)