jessedelira / gym-tracker

Open-source fitness tracking app 💪
https://gym-tracker.app
MIT License
9 stars 2 forks source link

Double submission on session creation #61

Open jessedelira opened 4 months ago

jessedelira commented 4 months ago

Describe the bug If the submit button is clicked twice after a submission quickly after the first then two of the same entries will be created

To Reproduce Steps to reproduce the behavior:

  1. Go to create a session
  2. Enter information requested
  3. Click Save twice
  4. On the manage session page there will be two of the same entries

Expected behavior Only one of the entries will be saved

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.