diff --git a/client-mu-plugins/goodbids/blocks/reward-product/render.php b/client-mu-plugins/goodbids/blocks/reward-product/render.php index 105fa9d87..305d9535d 100644 --- a/client-mu-plugins/goodbids/blocks/reward-product/render.php +++ b/client-mu-plugins/goodbids/blocks/reward-product/render.php @@ -8,12 +8,10 @@ * @package GoodBids */ -$goal = goodbids()->auctions->get_goal( goodbids()->auctions->get_auction_id() ); -$estimated_value = goodbids()->auctions->get_estimated_value( $auction_id ); -$expected_high_bid = goodbids()->auctions->get_expected_high_bid( $auction_id ); +$goal = goodbids()->auctions->get_goal(); +$estimated_value = goodbids()->auctions->get_estimated_value(); +$expected_high_bid = goodbids()->auctions->get_expected_high_bid(); ?> - -
> get_bid_product_id( $auction_id ) ); - printf( - '

%s
%s

', - esc_html__( 'Current Bid', 'goodbids' ), - wp_kses_post( wc_price( $bid_product->get_price() ) ) - ); + if ( $bid_product ) : + printf( + '

%s
%s

', + esc_html__( 'Current Bid', 'goodbids' ), + wp_kses_post( wc_price( $bid_product->get_price() ) ) + ); + endif; $last_bid = $this->get_last_bid( $auction_id );