Skip to content

Commit

Permalink
fix(select): incorrect assert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 28, 2017
1 parent ee3d943 commit ec2a34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
*/
getValues(): any[] {
const values = Array.isArray(this._value) ? this._value : [this._value];
assert(!this._multi && values.length <= 1, 'single only can have one value');
assert(this._multi || values.length <= 1, 'single only can have one value');
return values;
}

Expand Down

0 comments on commit ec2a34d

Please sign in to comment.