Skip to content

Commit f5cdacf

Browse files
committed
Fixed an issue with incorrect if statement
1 parent 2ca4772 commit f5cdacf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/Generate/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const Generate = () => {
9999
* Generate passwords
100100
*/
101101
const generatePasswords = () => {
102-
if (!cannotGenerate) {
102+
if (cannotGenerate) {
103103
return;
104104
}
105105
d1(setLoading(true));

src/routes/Home/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const Home = () => {
7474
* Generate passwords
7575
*/
7676
const generatePasswords = () => {
77-
if (!cannotGenerate) {
77+
if (cannotGenerate) {
7878
return;
7979
}
8080

0 commit comments

Comments
 (0)