Преглед на файлове

Fixed issue with isTheSame in CustomInput hopefully for real this time again.

KrisVos130 преди 7 години
родител
ревизия
16aaf59b6c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      frontend/app/js/views/Auth/CustomInput.jsx

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

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