fix ios_placed_order

This commit is contained in:
Seth Call 2017-02-05 22:07:08 -06:00
parent cf553009bf
commit 1b8a6dd01b
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ module JamRuby
return jam_track_right
end
if !jam_track_right.can_download && variant == ShoppingCart::JAMTRACK_STREAM
if !jam_track_right.nil? && (!jam_track_right.can_download && variant == ShoppingCart::JAMTRACK_STREAM)
# if the user does have the track, but isn't upgrading it, bail
return jam_track_right
end