diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-09-22 02:05:29 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-09-22 02:05:29 +0000 |
| commit | 23b667695991fafeae523aff1de7df81770461cd (patch) | |
| tree | 6ce4958f4000e3db72ceddebe7ffb468eefe395b /src/core/utils | |
| parent | 6ac18fd7baaf617f12f8fd6edde8a4881c547330 (diff) | |
| parent | bda91439b6ef4605a579bde8bef603b551aab3dd (diff) | |
Merged in Feature/popup_cart (pull request #72)
Feature/popup cart
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' |
