Don't hide initial app features if search result was unsuccessful (#136)

This commit is contained in:
Brian Hackett
2025-06-05 07:36:45 -07:00
committed by GitHub
parent c8d8301bf2
commit b550d15930

View File

@@ -247,7 +247,9 @@ export const Messages = React.forwardRef<HTMLDivElement, MessagesProps>(
if (category === USER_RESPONSE_CATEGORY) {
return false;
}
if (category === SEARCH_ARBORETUM_CATEGORY) {
// Only return on successful searches. Failed searches do not have
// a valid result.
if (category === SEARCH_ARBORETUM_CATEGORY && parseSearchArboretumResult(messages[i])) {
return true;
}
}