Skip to content

Commit

Permalink
Fix string case check in Growthbook.On
Browse files Browse the repository at this point in the history
  • Loading branch information
darklordzw committed Jul 1, 2022
1 parent c111006 commit 615f597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GrowthBook/FeatureResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public bool On {
return false;
}
string strValue = Value.ToString();
return !string.IsNullOrEmpty(strValue) && strValue != "0" && strValue != "false";
return !string.IsNullOrEmpty(strValue) && strValue != "0" && strValue.ToLower() != "false";
}
}

Expand Down
2 changes: 1 addition & 1 deletion GrowthBook/GrowthBook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<RepositoryUrl>https://github.com/darklordzw/growthbook-c-sharp.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>GrowthBook,A/B test,feature toggle</PackageTags>
<Version>0.0.3</Version>
<Version>0.0.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 615f597

Please sign in to comment.