diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 80552d8..b2e3b9b 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -239,7 +239,7 @@ class ShowPlanes extends Component public function saveRenovar() { $correo_existe = Cuentas::where('correo', $this->usuario_renovar)->exists(); - if (!$correo_existe) { + if (!$correo_existe || $this->usuario_renovar_old !== $this->usuario_renovar) { if ($this->fecha_inicial_renovar_old !== $this->fecha_inicial_renovar || $this->fecha_final_renovar_old !== $this->fecha_final_renovar) { $this->alert('warning', '¿Desea también desvincular todos los usuarios de esta cuenta? ', [ 'position' => 'center',