Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Copy/paste error with main menu button confirm dialog [PT-187361590] #41

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export const App = () => {
};

const handleReturnToMainMenu = () => {
if (confirm("Are you sure you want to reset?\n\nAny changes you have made will be lost.")) {
if (confirm("Are you sure you want to go back to the main menu?\n\nAny changes you have made will be lost.")) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to add the second line break?

Suggested change
if (confirm("Are you sure you want to go back to the main menu?\n\nAny changes you have made will be lost.")) {
if (confirm("Are you sure you want to go back to the main menu?\nAny changes you have made will be lost.")) {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

setGraph({nodes: [], edges: []});
setViewMode(undefined);
}
Expand Down
Loading