Skip to content

Commit

Permalink
fix a bug when creating item failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LAPTOP-JOSH committed Dec 16, 2019
1 parent 7b9b1f2 commit 17b3b73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public CreatedSlotItemViewModel()
public void Update(CreatedSlotItem item)
{
this.Succeed = item.Succeed;
this.Name = item.SlotItemInfo.Name ?? "-----";
this.Name = item.Succeed ? item.SlotItemInfo.Name : "-----";
}
}
}

0 comments on commit 17b3b73

Please sign in to comment.