From bbd1849e19045564452bdda28788c539a0c2b7ae Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 17 Jun 2024 13:07:03 -0700 Subject: [PATCH] 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. --- app/models/item.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/item.rb b/app/models/item.rb index 072a516a..d426e88a 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -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