From e7d76879d2fa7ae33db1a361cba425f485526391 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 23 Aug 2023 02:43:21 -0700 Subject: [PATCH] Only show views in Weapon and Summon search --- components/search/SearchModal/index.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/components/search/SearchModal/index.tsx b/components/search/SearchModal/index.tsx index f934beb1..13e180e3 100644 --- a/components/search/SearchModal/index.tsx +++ b/components/search/SearchModal/index.tsx @@ -457,15 +457,17 @@ const SearchModal = (props: Props) => {
{t('search.result_count', { record_count: recordCount })}
-
- View: - - -
+ {(props.object === 'weapons' || props.object === 'summons') && ( +
+ View: + + +
+ )} {open ? renderResults() : ''}