From 6d86b140f96049661675cfd83d219b4b82385e36 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 26 Jun 2020 18:50:04 +0300 Subject: Add parentheses around multiple spread conditions --- js/src/tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/src/tooltip.js') diff --git a/js/src/tooltip.js b/js/src/tooltip.js index d8d92f57d..9ad73328b 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -491,7 +491,7 @@ class Tooltip { offset.fn = data => { data.offsets = { ...data.offsets, - ...this.config.offset(data.offsets, this.element) || {} + ...(this.config.offset(data.offsets, this.element) || {}) } return data @@ -689,7 +689,7 @@ class Tooltip { config = { ...this.constructor.Default, ...dataAttributes, - ...typeof config === 'object' && config ? config : {} + ...(typeof config === 'object' && config ? config : {}) } if (typeof config.delay === 'number') { -- cgit v1.2.3