Skip to content

Commit e75436c

Browse files
committed
Rebase and Fix add account
1 parent 8ad549b commit e75436c

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ SPEC CHECKSUMS:
28042804
ContextMenuAuxiliaryPreview: 20be0be795b783b68f8792732eed4bed9f202c1c
28052805
CryptoSwift: 967f37cea5a3294d9cce358f78861652155be483
28062806
CSecp256k1: 2a59c03e52637ded98896a33be4b2649392cb843
2807-
DGSwiftUtilities: 26ab864a9ef7d92facb211aeb133412efd64ce65
2807+
DGSwiftUtilities: 2f0d35d5ff3d57bd70ccc42f15971460db202c41
28082808
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
28092809
EASClient: d15d70e334b019ae5649609011cda761defe4b1a
28102810
EXApplication: 4c72f6017a14a65e338c5e74fca418f35141e819
@@ -2939,8 +2939,8 @@ SPEC CHECKSUMS:
29392939
React-utils: 89a30618bd38c591900879825de59104ded1e246
29402940
ReactCodegen: 28abe92ea9a1e277edc25d02d7d53ab3acf5cc07
29412941
ReactCommon: 7da12c0f59956995a153de45835b64c89e0a4a57
2942-
ReactNativeIosContextMenu: 23da83d33323a0ef2010a6199df335e51f0df88e
2943-
ReactNativeIosUtilities: 66f47ba72a6caf132da8c8e61090de6e5e364beb
2942+
ReactNativeIosContextMenu: 116a1993b5fd6dc9f8cf703c32f47e8bcc22a618
2943+
ReactNativeIosUtilities: 780b35bfc6dd1deab9e2bd76c579ad5ebe04be02
29442944
ReactNativePasskeys: f11a9ff48d8066f3c60e88b38ed10e8f82b77882
29452945
rn-fetch-blob: 25612b6d6f6e980c6f17ed98ba2f58f5696a51ca
29462946
RNAWSCognito: 7f374b06129b2efd233fe9fa5c60443d90126bc1

screens/NewAccount/new-account-contact-card-screen.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
} from "@/features/onboarding/constants/animationConstants";
1919
import { useRouter } from "@/navigation/useNavigation";
2020
import { Pressable } from "@/design-system/Pressable";
21-
import { setAuthStatus } from "@/data/store/authStore";
2221
import { useCurrentAccount } from "@/data/store/accountsStore";
2322
import { formatRandoDisplayName } from "@/utils/str";
2423
import { OnboardingContactCard } from "@/features/onboarding/components/onboarding-contact-card";
@@ -30,7 +29,6 @@ import { formatRandomUserName } from "@/features/onboarding/utils/formatRandomUs
3029
import { useAddPfp } from "@/features/onboarding/hooks/useAddPfp";
3130
import { useCreateOrUpdateProfileInfo } from "@/features/onboarding/hooks/useCreateOrUpdateProfileInfo";
3231
import { useProfile } from "@/features/onboarding/hooks/useProfile";
33-
import { needToShowNotificationsPermissions } from "@/features/onboarding/Onboarding.utils";
3432
import { ProfileType } from "@/features/onboarding/types/onboarding.types";
3533
import { NativeStackScreenProps } from "@react-navigation/native-stack";
3634
import { NavigationParamList } from "../Navigation/Navigation";
@@ -75,8 +73,6 @@ export const NewAccountContactCardScreen = memo(
7573
) {
7674
const { navigation } = props;
7775

78-
const router = useRouter();
79-
8076
const address = useCurrentAccount()!;
8177

8278
const { themed } = useAppTheme();
@@ -144,16 +140,14 @@ export const NewAccountContactCardScreen = memo(
144140
profile: newProfile,
145141
});
146142
if (success) {
147-
if (needToShowNotificationsPermissions()) {
148-
router.push("OnboardingNotifications");
149-
} else {
150-
setAuthStatus("signedIn");
151-
}
143+
navigation.popTo("Chats");
144+
} else {
145+
throw new Error("Failed to create or update profile");
152146
}
153147
} catch (error) {
154148
handleError(error as Error);
155149
}
156-
}, [createOrUpdateProfile, profile, router, handleError, asset?.uri]);
150+
}, [profile, asset?.uri, createOrUpdateProfile, navigation, handleError]);
157151

158152
const handleContinue = useCallback(() => {
159153
logger.debug("[NewAccountContactCardScreen] handleContinue", type);

0 commit comments

Comments
 (0)