Simplify logic for setting hpos_enabled value

This commit is contained in:
Rodel Calasagsag 2023-10-22 21:25:21 +08:00
parent 22a1aabdd4
commit 8376efe7c5
1 changed files with 1 additions and 3 deletions

View File

@ -11,9 +11,7 @@ export const customer_username =
export const customer_password = __ENV.C_PW || 'password';
export const customer_user_id = __ENV.C_UID || '2';
export const hpos_enabled = [ 'true', 'false' ].includes( __ENV.HPOS )
? JSON.parse( __ENV.HPOS )
: true;
export const hpos_enabled = __ENV.HPOS !== 'false';
export const admin_orders_base_url = 'edit.php?post_type=shop_order';
export const hpos_admin_orders_base_url = 'admin.php?page=wc-orders';