Skip to content

Commit 34cb54d

Browse files
committed
Fix Copilot catches
1 parent 30e1196 commit 34cb54d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ios/gamma/stack/host/RNSStackHostComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ - (void)addPopOperationIfNeeded:(nonnull RNSStackScreenComponentView *)stackScre
119119
{
120120
if (stackScreen.activityMode == RNSStackScreenActivityModeAttached && !stackScreen.isNativelyDismissed) {
121121
// This shouldn't happen in typical scenarios but it can happen with fast-refresh.
122-
[_stackOperationCoordinator addPushOperation:stackScreen];
122+
[_stackOperationCoordinator addPopOperation:stackScreen];
123123
} else {
124124
RNSLog(
125125
@"[RNScreens] ignoring pop operation of %s, already not attached or natively dismissed",

ios/gamma/stack/screen/RNSStackScreenController.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ - (void)didMoveToParentViewController:(UIViewController *)parent
5858
[super didMoveToParentViewController:parent];
5959

6060
if (parent == nil) {
61-
if (_screenView.activityMode == RNSStackScreenActivityModeAttached) {
61+
if (_screenView.activityMode == RNSStackScreenActivityModeDetached) {
6262
[[self reactEventEmitter] emitOnDismiss];
6363
} else {
6464
_screenView.isNativelyDismissed = YES;

0 commit comments

Comments
 (0)