Oops, fix crash for Dyeworks without Owls info in Item Getting Guide
Silly mistake, right, we might not have a trade value listed! This is relevant for the new Dyeworks items that just came out like a few hours ago, which Owls doesn't have info for yet.
This commit is contained in:
parent
598a9dac52
commit
bbd1849e19
1 changed files with 1 additions and 0 deletions
|
@ -213,6 +213,7 @@ class Item < ApplicationRecord
|
|||
# Mall at any time, rather than as part of a limited-time event. (Owls tracks
|
||||
# this, not us!)
|
||||
def dyeworks_permanent?
|
||||
return false if nc_trade_value.nil?
|
||||
nc_trade_value.value_text.include?("Permanent Dyeworks")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue