will compile this way
This commit is contained in:
1 parent
28543c285c
commit
088c04abdc
5 files changed
+38
-6
No files matched your search
@@ -58,10 +58,11 @@ const SignInScreen = ({onSignIn}: {onSignIn: () => void}) => {
|
||||
pushToken.data
|
||||
) as User;
|
||||
await saveUser(user);
|
||||
//Alert.alert(`${user.appleId} - ${user.email} - ${user.fullName} - ${user.pushToken}`);
|
||||
} else if (initialDataResponse.ok) {
|
||||
const initialData: InitialData = await initialDataResponse.json() as InitialData;
|
||||
console.log('Existing user found! Saving data...');
|
||||
|
||||
//Alert.alert('Existing user found! Saving data...');
|
||||
if (initialData.user.pushToken !== pushToken.data) {
|
||||
const updatePushTokenResponse = await updatePushToken(
|
||||
initialData.user.id,
|
||||
|
||||
Reference in new issue
Block a user