From 815a70bc41c5b910e3b622bb0d7991488c0803a8 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 4 Dec 2025 02:58:39 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20usar=20n=C3=BAmero=20do=20WhatsApp=20cor?= =?UTF-8?q?reto=20direto=20sem=20puxar=20do=20banco?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/WhatsAppButton.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/WhatsAppButton.tsx b/frontend/src/components/WhatsAppButton.tsx index c0616e0..b6b1d9c 100644 --- a/frontend/src/components/WhatsAppButton.tsx +++ b/frontend/src/components/WhatsAppButton.tsx @@ -12,16 +12,10 @@ export default function WhatsAppButton() { useEffect(() => { setMounted(true); - // Busca o número do WhatsApp das configurações - fetch('/api/settings') - .then(res => res.json()) - .then(data => { - if (data.whatsapp) { - const cleanNumber = data.whatsapp.replace(/\D/g, ''); - setWhatsappLink(`https://api.whatsapp.com/send/?phone=${cleanNumber}&text&type=phone_number&app_absent=0`); - } - }) - .catch(console.error); + // Usa o número padrão correto + // Se precisar atualizar no futuro, mude aqui + const defaultNumber = '553598829445'; + setWhatsappLink(`https://api.whatsapp.com/send/?phone=${defaultNumber}&text&type=phone_number&app_absent=0`); }, []); if (!mounted) {