diff --git a/src/components/Main/Main.css b/src/components/Main/Main.css index d6c49ee..b722c30 100644 --- a/src/components/Main/Main.css +++ b/src/components/Main/Main.css @@ -13,7 +13,7 @@ border-radius: 10px; background-color: #1E223F; padding: 20px; - height: 8.5vh; + height: 60px; } .Copied, .Copy { diff --git a/src/components/Settings/Settings.js b/src/components/Settings/Settings.js index 09fdfbb..c694187 100644 --- a/src/components/Settings/Settings.js +++ b/src/components/Settings/Settings.js @@ -26,7 +26,7 @@ class Settings extends Component { let password = ''; let temporaryOptions = [...options]; - for (let index = 1; index <= lengthPassword; index += 1) { + while (password.length < lengthPassword) { if (temporaryOptions.length === 0) temporaryOptions = [...options]; const indexOptions = Math.ceil(Math.random() * temporaryOptions.length - 1);