浏览代码

Fixed issue with isTheSame in CustomInput.

KrisVos130 7 年之前
父节点
当前提交
d5e80ca6c6
共有 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[Object.keys(properties)[0]].getValue();
 		Object.keys(input).forEach((key) => {
 			if (input[key].getValue() !== value) invalid = true;
 		});