diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-15 09:32:12 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-15 09:32:12 +0700 |
| commit | e5c08cb213d0c6dbfa5a931e03eeccac518ddba1 (patch) | |
| tree | ba9dbba7ae89c35d01bc4bb3f92d09de53f06385 /src/core/utils | |
| parent | f90ec98c509fad7146c169d8d762b4c847d07af8 (diff) | |
change get product odoo to solr di page navbar & basiclayout & bugfix redirect login next page null
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/whatsappUrl.js | 5 |
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' |
