Limit note and label text to 144 characters

This commit is contained in:
Mitchell McCaffrey
2020-11-27 11:53:25 +11:00
parent 309870247b
commit ddda241c56
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ function TokenMenu({
}, [isOpen, tokenState, wasOpen, tokenImage]);
function handleLabelChange(event) {
const label = event.target.value;
const label = event.target.value.substring(0, 144);
tokenState &&
onTokenStateChange({ [tokenState.id]: { ...tokenState, label: label } });
}