From a68d56f3340f716ed925ddaebe352ce0c843496d Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Tue, 9 Apr 2024 15:24:44 -0400 Subject: [PATCH] using null coalescing operator --- src/iss-components/cart-dropdown/cart-dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iss-components/cart-dropdown/cart-dropdown.vue b/src/iss-components/cart-dropdown/cart-dropdown.vue index 16caccb7..c1d148bd 100644 --- a/src/iss-components/cart-dropdown/cart-dropdown.vue +++ b/src/iss-components/cart-dropdown/cart-dropdown.vue @@ -252,7 +252,7 @@ export default { result += sumTax(this.baseServiceLineItems); } else { // deductible-case need to show tax for Recycle Fee - result += this.recycleFeeLineItem != null ? this.recycleFeeLineItem.salesTax : 0; + result += this.recycleFeeLineItem?.salesTax ?? 0; } }