summaryrefslogtreecommitdiff
path: root/src/core/utils/whatsappUrl.js
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-15 09:32:12 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-15 09:32:12 +0700
commite5c08cb213d0c6dbfa5a931e03eeccac518ddba1 (patch)
treeba9dbba7ae89c35d01bc4bb3f92d09de53f06385 /src/core/utils/whatsappUrl.js
parentf90ec98c509fad7146c169d8d762b4c847d07af8 (diff)
change get product odoo to solr di page navbar & basiclayout & bugfix redirect login next page null
Diffstat (limited to 'src/core/utils/whatsappUrl.js')
-rw-r--r--src/core/utils/whatsappUrl.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/utils/whatsappUrl.js b/src/core/utils/whatsappUrl.js
index 6c354924..9a92f424 100644
--- a/src/core/utils/whatsappUrl.js
+++ b/src/core/utils/whatsappUrl.js
@@ -1,9 +1,10 @@
import { getAuth } from "./auth"
-const whatsappUrl = (template = 'default', payload, urlPath = '') => {
+const whatsappUrl = (template = 'default', payload, urlPath = null) => {
let user = getAuth()
if(!user){
- return `/login?next=${urlPath}`
+ if(urlPath) return `/login?next=${urlPath}`
+ if(!urlPath) return '/login'
}
let parentName = user.parentName || '-'
let url = 'https://wa.me/628128080622'