User can create multiple books by clicking "Start writing your book" or "Import your files" while waiting for the next page to load
Users are able to create multiple books by repeatedly clicking the "Start Writing Your Book" or "Import Your Files" buttons while waiting for the next page to load. This leads to unintended book creation without any title, as multiple books are generated in the background.
Expected behavior
Clicking the "Start Writing Your Book" or "Import Your Files" button should trigger book creation, but it should redirect the user to the next step to title the book before allowing any further action.
Current behavior
Clicking the buttons multiple times creates multiple books without titles in the background while users are waiting to be redirected to the next step to title the book or import the files. Also there is no indication that multiple books are being created except a warning about unauthorized action.
Steps to reproduce
- Go to the dashboard.
- Click "Start writing your book" as many times as you can until the next page of Book title is loaded OR click "Import your files" as many times as you can until the next page of Importing files is loaded
- In the next page you will see an error "Unauthorized action: You don't have permissions to perform this action. Please contact book's owner"
- Click OK in the modal of the warning and you are redirected back to the dashboard
- Check that there are as many untitled books created as times you clicked the buttons
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
[Not required. Suggest a fix for the bug]