Skip to content

Commit

Permalink
fix(module:rate): ensure value to be number (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
trotyl authored and vthinkxie committed Dec 11, 2017
1 parent 6cf80b0 commit 35687c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/rate/nz-rate.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export class NzRateComponent implements OnInit, ControlValueAccessor {
};
}

writeValue(value: number): void {
this.nzValue = value;
writeValue(value: number | null): void {
this.nzValue = value || 0;
}

registerOnChange(fn: (_: number) => void): void {
Expand Down

0 comments on commit 35687c3

Please sign in to comment.