v1.36.1 - Fix: Corrigido erro 'n is not a function' na seção Passivos (formatDate import)

This commit is contained in:
marcoitaloesp-ai 2025-12-15 16:23:34 +00:00 committed by GitHub
parent 7fbd572371
commit 0d8287a1c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 2 deletions

View File

@ -5,6 +5,15 @@ O formato segue [Keep a Changelog](https://keepachangelog.com/pt-BR/).
Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/).
## [1.36.1] - 2025-12-15
### Fixed
- **Bug Critical - Relatórios Passivos** - Corrigido erro "n is not a function"
- Problema: `formatDate` estava sendo importado incorretamente do hook useFormatters
- Solução: Hook exporta `date`, ajustado para `date: formatDate` na desestruturação
- Erro ocorria ao clicar na aba de Passivos devido à formatação da próxima parcela
- Seção de Passivos agora funciona corretamente
## [1.36.0] - 2025-12-15
### Improved

View File

@ -1 +1 @@
1.36.0
1.36.1

View File

@ -33,7 +33,7 @@ ChartJS.register(
const Reports = () => {
const { t } = useTranslation();
const { currency, formatDate } = useFormatters();
const { currency, date: formatDate } = useFormatters();
const [activeTab, setActiveTab] = useState('summary');
const [loading, setLoading] = useState(true);