Skip to content

Commit

Permalink
updates prici (fastlane#21282)
Browse files Browse the repository at this point in the history
ng tier election to correctly handle nil value
  • Loading branch information
lukethoene authored and iOSGeekster committed Jun 19, 2023
1 parent 8635282 commit 6f40d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deliver/lib/deliver/upload_price_tier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def upload(options)
# Need to get prices from the app's relationships
# Prices from app's relationship doess not have price tier so need to fetch app price with price tier relationship
app_prices = app.prices
if app_prices.first
if app_prices&.first
app_price = Spaceship::ConnectAPI.get_app_price(app_price_id: app_prices.first.id, includes: "priceTier").first
old_price = app_price.price_tier.id
else
Expand Down

0 comments on commit 6f40d93

Please sign in to comment.