mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
Added type check for id
This commit is contained in:
parent
37ae0374d8
commit
d966668257
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const identify = (data, id = undefined) => {
|
const identify = (data, id = undefined) => {
|
||||||
if (id) {
|
if (id && typeof id === 'string') {
|
||||||
identity = id;
|
identity = id;
|
||||||
}
|
}
|
||||||
/* Clear cache since this will result in another session */
|
/* Clear cache since this will result in another session */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue