Fixed empty strings in log input
This commit is contained in:
@@ -60,6 +60,7 @@ export default {
|
|||||||
input(value){
|
input(value){
|
||||||
this.input = value;
|
this.input = value;
|
||||||
this.inputHint = this.inputError = undefined;
|
this.inputHint = this.inputError = undefined;
|
||||||
|
if (!this.input) return;
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
result = parse(value);
|
result = parse(value);
|
||||||
@@ -85,7 +86,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submit(){
|
submit(){
|
||||||
if (this.inputError) return;
|
if (this.inputError || !this.input) return;
|
||||||
logRoll.call({
|
logRoll.call({
|
||||||
roll: this.input,
|
roll: this.input,
|
||||||
creatureId: this.creatureId,
|
creatureId: this.creatureId,
|
||||||
|
|||||||
Reference in New Issue
Block a user