Skip to content

Commit f8581f9

Browse files
committed
Fix the issue that new account can't save diagram
1 parent 50495ba commit f8581f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ BookLibService.Borrow(id) {
454454
}
455455

456456
checkItemsLimit() {
457-
if(!this.state.user || this.state.user.items && Object.keys(this.state.user.items).length <= 3 || userService.isPro()) {
457+
if(!this.state.user || !this.state.user.items || Object.keys(this.state.user.items).length <= 3 || userService.isPro()) {
458458
return true;
459459
}
460460

0 commit comments

Comments
 (0)