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:
Emi Matchu 2024-06-17 13:07:03 -07:00
parent 598a9dac52
commit bbd1849e19

View file

@ -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