Update ShowPlanes.php

This commit is contained in:
lizandrogd
2024-07-28 17:36:23 -05:00
parent b318ad1659
commit 152d97083f
+1 -1
View File
@@ -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',