GTBitsOfGood / angels-among-us

Rescue one until there are none
https://staging--angels-among-us.netlify.app
MIT License
4 stars 0 forks source link

[BUG] Same Post Multiple Creation #193

Closed uma-anand closed 1 year ago

uma-anand commented 1 year ago

Description

When creating a post, there is sometimes a small delay between pressing the final post button and going back to the home screen. During that delay, if you press the post button again, it makes a new post with the same details.

Reproduction Steps

First try to create a new post. After adding all the details to it, try pressing the final create post button multiple times. You will be able to then see duplicate posts (they have different object IDs) in the feed and in MongoDB.

Expected Behavior

Make it such that even if the button is pressed several times on the same screen it only creates one post.

uma-anand commented 1 year ago

Here's an example: image I pressed the Post button 3 times.