GSA / smartpay-training

Prototype for new GSA SmartPay training quizzes
8 stars 4 forks source link

prevent multiple clicks of submit button #420

Closed mark-meyer closed 11 months ago

mark-meyer commented 11 months ago

The adds a flag to indicate if the user has submitted a quiz and disables the submit button when they have. This is to prevent double clicks from creating multiple records in the database. [Note: this is quick fix, it may be better to show a spinner to indicate things are working for users on slow connections]