diff --git a/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java b/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java index ab3130b2..4cb08187 100644 --- a/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java +++ b/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java @@ -57,7 +57,7 @@ public ProductDetailResponse getProduct( String userKey = isAuthenticated ? principalDetails.getUsername() : productService.generateOrRetrieveAnonymousKey(request, response); boolean isSeller = isAuthenticated && principalDetails.getUserId().equals(product.getUserId()); - boolean isTrading = !getOrdersForProduct(userId).isEmpty() || !getNegotiationsForProduct(product).isEmpty(); + boolean isTrading = getOrdersForProduct(userId).isPresent() || !getNegotiationsForProduct(product).isEmpty(); productService.updateProductViewCount(userKey, productId.toString()); productService.updateAutocompleteCount(AUTOCOMPLETE_KEY, product.getAccommodationName());