Skip to content

Commit

Permalink
chore: fix custom field writing
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed May 14, 2018
1 parent 7ffb9ed commit e76e5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pipedrive.net/Converters/CustomFieldConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s
IDictionary<string,IField> customFields = ((IEntityWithCustomFields)value).CustomFields;
foreach(var field in customFields)
{
if (field.Value != null)
if (field.Value == null)
{
o.Add(field.Key, null);
} else {
Expand Down

0 comments on commit e76e5d3

Please sign in to comment.