We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bb42d7 + 856ae3d commit 0eb06b7Copy full SHA for 0eb06b7
1 file changed
src/components/WeeklySummary/WeeklySummary.jsx
@@ -621,7 +621,6 @@ export class WeeklySummary extends Component {
621
};
622
623
// Updates user profile and weekly summaries
624
- // replace your existing updateUserData with this guard:
625
updateUserData = async userId => {
626
const { getUserProfile, getWeeklySummaries } = this.props;
627
if (typeof getUserProfile === 'function') {
@@ -659,7 +658,7 @@ export class WeeklySummary extends Component {
659
658
const errors = this.validate();
660
661
this.setState({ errors: errors });
662
- if (Object.keys(errors).length > 0) {
+ if (Object.keys(Object.keys(errors).length > 0).length > 0) {
663
this.setState({ moveConfirm: false });
664
return;
665
}
0 commit comments