Fix: Correct updateUserWhatsAppInstance call

Corrected the `updateUserWhatsAppInstance` call in `src/components/whatsapp/CreateInstanceForm.tsx` to match the expected argument count.
This commit is contained in:
gpt-engineer-app[bot] 2025-06-20 16:49:14 +00:00
parent 3e3b931ca7
commit 364304ef6c

View File

@ -1,4 +1,3 @@
import React, { useState } from 'react';
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
@ -65,8 +64,8 @@ const CreateInstanceForm = ({ onInstanceCreated, initialInstanceName = '' }: Cre
console.log(`🚀 Criando instância para: ${normalizedEmail} com número: ${fullPhoneNumber}`);
// Criar a instância no Evolution API
const response = await restartInstance(normalizedEmail, fullPhoneNumber);
// Criar a instância no Evolution API - passar apenas o email
const response = await restartInstance(normalizedEmail);
if (response && response.instance) {
const instanceData: WhatsAppInstance = {