Stripe Integration
This commit is contained in:
@@ -133,7 +133,7 @@ export class AccountComponent {
|
||||
const confirmed = await this.confirmationService.showConfirmation({ message: 'Are you sure you want to switch to Buyer ? All your listings as well as all your professionals informations will be deleted' });
|
||||
if (confirmed) {
|
||||
const id = this.user.id;
|
||||
this.user = createDefaultUser(this.user.email, this.user.firstname, this.user.lastname);
|
||||
this.user = createDefaultUser(this.user.email, this.user.firstname, this.user.lastname, 'free');
|
||||
this.user.customerType = 'buyer';
|
||||
this.user.id = id;
|
||||
this.imageService.deleteLogoImagesByMail(this.user.email);
|
||||
|
||||
Reference in New Issue
Block a user