UserContext, deleteAccount: if provider is google, use reauthenticateWithPopup to reauthenticate user

This commit is contained in:
gianantoniopini
2021-04-26 15:26:02 +02:00
parent f53e34c37d
commit b5d4d54ad3
2 changed files with 39 additions and 6 deletions

View File

@ -46,7 +46,7 @@ const Settings = ({ id }) => {
try {
await deleteAccount();
} catch (error) {
toast.error('An error occurred deleting your account');
toast.error('An error occurred deleting your account.');
setDeleteText(t('builder.settings.dangerZone.button'));
}
};