Skip to content

Commit 0eb06b7

Browse files
Sundar MachaniSundar Machani
authored andcommitted
fix: fixed save button on weeklysummary page conflicts
2 parents 0bb42d7 + 856ae3d commit 0eb06b7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/WeeklySummary/WeeklySummary.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ export class WeeklySummary extends Component {
621621
};
622622

623623
// Updates user profile and weekly summaries
624-
// replace your existing updateUserData with this guard:
625624
updateUserData = async userId => {
626625
const { getUserProfile, getWeeklySummaries } = this.props;
627626
if (typeof getUserProfile === 'function') {
@@ -659,7 +658,7 @@ export class WeeklySummary extends Component {
659658
const errors = this.validate();
660659

661660
this.setState({ errors: errors });
662-
if (Object.keys(errors).length > 0) {
661+
if (Object.keys(Object.keys(errors).length > 0).length > 0) {
663662
this.setState({ moveConfirm: false });
664663
return;
665664
}

0 commit comments

Comments
 (0)