Skip to content

Commit

Permalink
change returns null to return false for type consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Oct 2, 2023
1 parent d523214 commit 85d7d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/History/Modals/CopyModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
},
newNameValid() {
if (this.userOwnsHistory && this.name == this.history.name) {
return null;
return false;
}
return this.name.length > 0;
},
Expand Down

0 comments on commit 85d7d23

Please sign in to comment.