Skip to content

Commit

Permalink
Merge pull request #578 from wordpress-mobile/fix/plan-flag
Browse files Browse the repository at this point in the history
Fix a regression in plan flag logic
  • Loading branch information
guarani authored Feb 17, 2023
2 parents dbc38b4 + 6eac316 commit 85336d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressKit'
s.version = '6.1.0-beta.2'
s.version = '6.1.0-beta.3'

s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion WordPressKit/RemoteBlog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import NSObject_SafeExpectations
self.options = RemoteBlogOptionsHelper.mapOptions(fromResponse: json)
self.planID = json.number(forKeyPath: "plan.product_id")
self.planTitle = json.string(forKeyPath: "plan.product_name_short")
self.hasPaidPlan = json.number(forKeyPath: "plan.is_free")?.boolValue ?? false
self.hasPaidPlan = !(json.number(forKeyPath: "plan.is_free")?.boolValue ?? true)
self.quotaSpaceAllowed = json.number(forKeyPath: "quota.space_allowed")
self.quotaSpaceUsed = json.number(forKeyPath: "quota.space_used")
}
Expand Down

0 comments on commit 85336d9

Please sign in to comment.