Fix wrong cache key product assigment

This commit is contained in:
dinamiko 2022-05-27 16:07:52 +02:00
parent af25aeead0
commit 24280dda3a

View file

@ -95,7 +95,7 @@ class OnboardingRenderer {
->data();
$environment = $is_production ? 'production' : 'sandbox';
$product = isset( $data['products']['PPCP'] ) ? 'ppcp' : 'express-checkout';
$product = 'PPCP' === $data['products'][0] ? 'ppcp' : 'express_checkout';
if ( $this->cache->has( $environment . '-' . $product ) ) {
return $this->cache->get( $environment . '-' . $product );
}