mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 07:49:01 +00:00
fix(goals): Number.NaN over global NaN in goal_form_controller
Biome's lint/style/useNumberNamespace rule. Same semantics — Number.NaN is the explicit namespace form post-ES2015. CI lint_js was failing on this line.
This commit is contained in:
@@ -81,7 +81,7 @@ export default class extends Controller {
|
||||
updateSuggested() {
|
||||
if (!this.hasSuggestedTarget) return;
|
||||
|
||||
const amount = this.hasAmountInputTarget ? Number.parseFloat(this.amountInputTarget.value) : NaN;
|
||||
const amount = this.hasAmountInputTarget ? Number.parseFloat(this.amountInputTarget.value) : Number.NaN;
|
||||
const dateValue = this.hasDateInputTarget ? this.dateInputTarget.value : null;
|
||||
const checkedCount = this.linkedAccountCheckboxTargets.filter((cb) => cb.checked).length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user