diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-09-15 02:29:14 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-09-15 02:29:14 +0000 |
| commit | d6f88923e194d841d68030a18c305a2fdb558fa1 (patch) | |
| tree | ba9dbba7ae89c35d01bc4bb3f92d09de53f06385 /src/core/utils | |
| parent | 6b4a109615799bd6994499c62221b635c9539898 (diff) | |
| parent | e5c08cb213d0c6dbfa5a931e03eeccac518ddba1 (diff) | |
Merged in CR/migrasi_product_detail_to_solr (pull request #68)
CR/migrasi product detail to solr
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' |
