Add guard around location redirect.
This commit is contained in:
@@ -143,7 +143,10 @@
|
||||
) {
|
||||
e.preventDefault();
|
||||
trackEvent(name).then(() => {
|
||||
location.href = get('href');
|
||||
const href = get('href');
|
||||
if (href) {
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
trackEvent(name);
|
||||
|
||||
Reference in New Issue
Block a user