Преглед изворни кода

Fixed issue with isTheSame in CustomInput.

KrisVos130 пре 7 година
родитељ
комит
fd4e4e65bd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      frontend/app/js/views/Auth/CustomInput.jsx

+ 1 - 1
frontend/app/js/views/Auth/CustomInput.jsx

@@ -94,7 +94,7 @@ export default class CustomInput extends Component {
 
 	static isTheSame = (input, properties) => {
 		let invalid = false;
-		let value = properties[Object.keys[0]].getValue();
+		const value = input[properties[0]].getValue();
 		Object.keys(input).forEach((key) => {
 			if (input[key].getValue() !== value) invalid = true;
 		});