[BUG]: Cancel dialog stays open after a network switch and cancels the invoice with the same id on the new chain
Los mantenedores suelen responder en 2 días
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 64/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
The Sent Invoices page already clears its list on a network or account switch, so start by finding that handler and the component that owns its invoice list state; the "Confirm Invoice Cancellation" dialog evidently keeps its own copy of the invoice instead. Trace the click that calls cancelInvoice(id) and see which chain id it is bound to, then make the dialog close (or re-bind) when the switch is detected. Done means switching chains or accounts with the dialog open leaves it dismissed and no cancellation is sent to the new chain.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
On Sent Invoices, the "Confirm Invoice Cancellation" dialog stays open when the wallet switches network or account. The page clears its list on the switch, but the dialog keeps the old invoice. Clicking "Yes, Cancel It" sends cancelInvoice(id) to the new chain's contract, so if you created an invoice with that id there, it gets cancelled instead.
Steps to Reproduce
- Have an unpaid sent invoice with the same id on two supported chains (e.g. Sepolia and Mordor).
- Open Sent Invoices on Sepolia and click Cancel on it.
- With the dialog open, switch the wallet to Mordor.
- The dialog is still there; click "Yes, Cancel It". The Mordor invoice is cancelled and the Sepolia one isn't.
Logs and Screenshots
Screenshot to follow.
Environment Details
- OS: Windows 11
- Browser: Chromium
- main at efa50011, tested on local anvil chains with chain ids 11155111 and 63
Impact
High - Major feature is broken (a cancelled invoice can't be restored)
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lenguaje dominante
- JavaScript
- Estrellas
- 13
- Forks
- 62
- Merge medio
- 2 d 14 h
- PR fusionados (30 d)
- 18
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de StabilityNexus/Chainvoice
-
[BUG]: Smart Batch Suggestions ignore active filters and select invoices hidden from the tablePosiblemente ocupada @anshulchikhale30-p la tomó hace 15 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
StabilityNexus/Chainvoice#331 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[BUG]: Invoices with the same date are sorted out of order (ids compared as strings)Posiblemente ocupada @anshulchikhale30-p la tomó hace 15 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
StabilityNexus/Chainvoice#330 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[BUG]: Stale token-list requests can overwrite state after switching networksPosiblemente ocupada @JANAKIRAM218 la tomó hace 10 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
StabilityNexus/Chainvoice#325 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[BUG]: Invoice PDF totals overlap the footer with 10 line itemsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
StabilityNexus/Chainvoice#310 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
[BUG]: Batch invoice summary truncates displayed amount precision to four decimal placesPosiblemente ocupada @JANAKIRAM218 la tomó hace 29 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
StabilityNexus/Chainvoice#294 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de StabilityNexus/Chainvoice
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 82/100
Leonxlnx/taste-skill#216 ·
Los mantenedores suelen responder en 1 día
-
Docs: 11 broken linksAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
all-contributors/cli#690 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día