Rewriting status card to make it look good and to go over the code
This commit is contained in:
@ -39,13 +39,15 @@ export const SignInWithMicrosoft = ({
|
||||
if (!profile.provider) {
|
||||
const updateResponse = await updateProfile({
|
||||
provider: result.data.provider,
|
||||
})
|
||||
if (!updateResponse.success) throw new Error('Could not update provider!');
|
||||
});
|
||||
if (!updateResponse.success)
|
||||
throw new Error('Could not update provider!');
|
||||
} else {
|
||||
const updateResponse = await updateProfile({
|
||||
provider: profile.provider + ' ' + result.data.provider,
|
||||
})
|
||||
if (!updateResponse.success) throw new Error('Could not update provider!');
|
||||
});
|
||||
if (!updateResponse.success)
|
||||
throw new Error('Could not update provider!');
|
||||
}
|
||||
}
|
||||
window.location.href = result.data.url;
|
||||
|
Reference in New Issue
Block a user