Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc changes #3461

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/components/EffectDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default {
},
label: {
type: String,
default: "Currently",
required: false
required: false,
default: "Currently"
},
ignoreCapped: {
type: Boolean,
Expand Down Expand Up @@ -72,8 +72,7 @@ export default {
}

if (!isFunction(effect)) {
throw new Error(`EffectDisplay config.effect has ` +
` unsupported type "${typeof effect}"`);
throw new Error(`EffectDisplay config.effect has unsupported type "${typeof effect}"`);
}

const value = effect();
Expand All @@ -85,8 +84,8 @@ export default {
this.effectValue = Decimal.fromDecimal(value);
this.updateEffect = () => this.effectValue.copyFrom(effect());
} else {
throw new Error(`EffectDisplay config.effect is a function which returns` +
` unsupported type "${typeof effect}"`);
// eslint-disable-next-line max-len
throw new Error(`EffectDisplay config.effect is a function which returns unsupported type "${typeof effect}"`);
}

let cap = config.cap;
Expand Down Expand Up @@ -125,8 +124,7 @@ export default {
return;
}

throw new Error(`EffectDisplay config.cap is a function which returns` +
` unsupported type "${typeof effect}"`);
throw new Error(`EffectDisplay config.cap is a function which returns unsupported type "${typeof effect}"`);
}
}
},
Expand Down
Loading