Skip to content

Commit c909b06

Browse files
committed
fix: null check for password input
1 parent ff23eb6 commit c909b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/CustomInput/PasswordField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const PasswordField = ({ onFocus, onBlur, shouldShowDefaultPlaceholderOnBlur, ..
2020
}
2121

2222
const handleBlur: CustomInputProps['onBlur'] = (event) => {
23-
if (shouldShowDefaultPlaceholderOnBlur && event.target.value === '') {
23+
if (shouldShowDefaultPlaceholderOnBlur && !event.target.value) {
2424
// eslint-disable-next-line no-param-reassign
2525
event.target.value = DEFAULT_SECRET_PLACEHOLDER
2626
}

0 commit comments

Comments
 (0)