Skip to content

[Bug] resetFormFields() is dead code — defined but never called in registration submit handler #70

@akshara200829-lgtm

Description

@akshara200829-lgtm

Bug Report

In frontend/registration.html, inside the form's submit event listener,
a function resetFormFields() is defined but never called anywhere.

Dead code location:
Bottom of the submit event handler (~line 230)

Impact:

  • dismissError() and fullResetForm() manually duplicate
    the same reset logic instead of reusing this function
  • If the reset logic ever changes, it must be updated in
    3 separate places — easy to miss, causes inconsistency

Fix:
Either call resetFormFields() where appropriate, or
remove it and consolidate reset logic into one shared function.

Hey @codepvg , i would like to work on this issue under GSSOC.Please assign this to me

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions