v1.43.12 - FIX: Badge de Débito em vermelho nas transações recorrentes

This commit is contained in:
marcoitaloesp-ai 2025-12-16 16:57:17 +00:00 committed by GitHub
parent efbd5e8aa2
commit 891df889ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View File

@ -5,6 +5,18 @@ O formato segue [Keep a Changelog](https://keepachangelog.com/pt-BR/).
Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/).
## [1.43.12] - 2025-12-16
### Fixed
- **Transações Recorrentes - Badge de Tipo**
- Badge de "Débito" agora aparece em vermelho (`bg-danger`) ✅
- Badge de "Crédito" continua em verde (`bg-success`) ✅
- Problema: Código comparava `template.type === 'expense'` mas banco usa 'debit'/'credit'
- Solução: Corrigido para `template.type === 'debit'`
- Aplicado em:
* Cards mobile
* Tabela desktop
## [1.43.11] - 2025-12-16
### Added

View File

@ -1 +1 @@
1.43.11
1.43.12

View File

@ -419,7 +419,7 @@ const RecurringTransactions = () => {
{t(`recurring.frequencies.${template.frequency}`, template.frequency)}
{template.frequency_interval > 1 && ` (x${template.frequency_interval})`}
</span>
<span className={`badge ${template.type === 'expense' ? 'bg-danger' : 'bg-success'}`} style={{ fontSize: '0.7rem' }}>
<span className={`badge ${template.type === 'debit' ? 'bg-danger' : 'bg-success'}`} style={{ fontSize: '0.7rem' }}>
{t(`transactions.${template.type}`)}
</span>
{(template.pending_instances_count || 0) > 0 && (
@ -500,7 +500,7 @@ const RecurringTransactions = () => {
)}
</td>
<td>
<span className={`badge ${template.type === 'expense' ? 'bg-danger' : 'bg-success'}`}>
<span className={`badge ${template.type === 'debit' ? 'bg-danger' : 'bg-success'}`}>
{t(`transactions.${template.type}`)}
</span>
</td>