diff --git a/services/web/test/frontend/features/project-list/components/project-list-root.test.tsx b/services/web/test/frontend/features/project-list/components/project-list-root.test.tsx
index e899a62c23..4b98d01c4d 100644
--- a/services/web/test/frontend/features/project-list/components/project-list-root.test.tsx
+++ b/services/web/test/frontend/features/project-list/components/project-list-root.test.tsx
@@ -813,10 +813,9 @@ describe('', function () {
let confirmButton =
within(modal).getByText('Rename')
expect(confirmButton.disabled).to.be.true
- let input = screen.getByLabelText('New Name') as HTMLButtonElement
// no name
- input = screen.getByLabelText('New Name') as HTMLButtonElement
+ const input = screen.getByLabelText('New Name') as HTMLButtonElement
fireEvent.change(input, {
target: { value: '' },
})