Fix getTagKey when charId can be a string

a4f566dc397b8368e0a559cb501a8d931100e4bd

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/tags.js+1 -1
@@ -447,7 +447,7 @@ export function getTagKeyForEntity(entityOrKey) {
447447 // Next lets check if its a valid character or character id, so we can swith it to its tag
448448 let character;
449449 if (!character && characters.indexOf(x) >= 0) character = x; // Check for char object
450450 if (!character && typeof x === 'number'!isNaN(parseInt(entityOrKey))) character = characters[x]; // check if its a char id
451451 if (!character) character = characters.find(y => y.avatar === x); // check if its a char key
452452
453453 if (character) {