From d3d3297a28c72442fd568a2d34d8484c5c2a5ca4 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 28 May 2024 16:21:03 -0700 Subject: [PATCH] Oops, fix recent bug in Owls value widget on item page Oh right, I was briefly planning to change the syntax for this stuff, then changed my mind, but forgot to change it back on this page! --- app/views/items/_item_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/items/_item_header.html.haml b/app/views/items/_item_header.html.haml index 62e8bb79..d1a68f4f 100644 --- a/app/views/items/_item_header.html.haml +++ b/app/views/items/_item_header.html.haml @@ -28,7 +28,7 @@ = link_to t('items.show.resources.jn_items'), jn_items_url_for(item) = link_to t('items.show.resources.impress_2020'), impress_2020_url_for(item) - if item.nc_trade_value - = link_to t('items.show.resources.owls', value: item.nc_trade_value_text), + = link_to t('items.show.resources.owls', value: item.nc_trade_value.value_text), "https://www.neopets.com/~owls", title: nc_trade_value_updated_at_text(item.nc_trade_value) - unless item.nc?