From 364304ef6c8af21b232a09fd25b700270d0fb232 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 16:49:14 +0000 Subject: [PATCH] Fix: Correct updateUserWhatsAppInstance call Corrected the `updateUserWhatsAppInstance` call in `src/components/whatsapp/CreateInstanceForm.tsx` to match the expected argument count. --- src/components/whatsapp/CreateInstanceForm.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/whatsapp/CreateInstanceForm.tsx b/src/components/whatsapp/CreateInstanceForm.tsx index 459c5b6..91da40b 100644 --- a/src/components/whatsapp/CreateInstanceForm.tsx +++ b/src/components/whatsapp/CreateInstanceForm.tsx @@ -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 = {