Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Sep 9, 2024
1 parent 1986a06 commit a194a73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/client/units.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ export const Units = {
let definition
_.forOwn(this.get(), (units, quantity) => {
// Already found ?
if (definition) return
else if (_.has(units, unit)) definition = Object.assign({ name: unit, quantity }, _.get(units, unit))
if (!definition && _.has(units, unit)) definition = Object.assign({ name: unit, quantity }, _.get(units, unit))
})
return definition
},
Expand Down

0 comments on commit a194a73

Please sign in to comment.