diff --git a/src/CommerceIntegration.php b/src/CommerceIntegration.php index 8036637a..4814bb4c 100644 --- a/src/CommerceIntegration.php +++ b/src/CommerceIntegration.php @@ -70,7 +70,7 @@ public static function handle_create( $attempt = 0 ): array { return $response; } catch ( PinterestApiException $e ) { - if ( self::MAX_RETRIES < $attempt ) { + if ( self::MAX_RETRIES === $attempt ) { Logger::log( sprintf( /* translators: 1: Pinterest internal code, 2: Pinterest response message. */