Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] setGuestPhone to support empty/null/undefined #143

Merged
merged 2 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/63.chunk.2c21f.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/63.chunk.2c21f.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/63.chunk.3f9b6.js

This file was deleted.

1 change: 0 additions & 1 deletion build/63.chunk.3f9b6.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions build/bundle.df02f.js → build/bundle.f5870.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/bundle.df02f.js.map → build/bundle.f5870.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"><title></title><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><script src="livechat/0.chunk.16385.js"></script><script src="livechat/polyfills.caf00.js"></script><script src="livechat/vendors~bundle.chunk.76887.js"></script><script src="livechat/bundle.df02f.js"></script></body></html>
<!doctype html><html><head><meta charset="utf-8"><title></title><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><script src="livechat/0.chunk.16385.js"></script><script src="livechat/polyfills.caf00.js"></script><script src="livechat/vendors~bundle.chunk.76887.js"></script><script src="livechat/bundle.f5870.js"></script></body></html>
2 changes: 1 addition & 1 deletion src/lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const api = {
},

setGuestPhone(phone) {
updateIframeGuestData({ phone });
updateIframeGuestData({ phone: phone ?? '' });
},

setGuestEmail(email) {
Expand Down