Skip to content

Commit 723a5d8

Browse files
committed
style: fix code standard
1 parent 79a0904 commit 723a5d8

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

index.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ class InputSpinner extends Component {
159159
return num;
160160
}
161161

162-
163162
/**
164163
* Limit value to be within max and min range
165164
* @param value
@@ -225,13 +224,16 @@ class InputSpinner extends Component {
225224
} else {
226225
value = String(this.parseNum(value));
227226
}
228-
let hasPlaceholder = value === "0" && !this.isStringEmpty(this.props.placeholder);
229-
return hasPlaceholder ? "" : value.replace(
230-
".",
231-
!this.isStringEmpty(this.props.decimalSeparator)
232-
? this.props.decimalSeparator
233-
: "."
234-
);
227+
let hasPlaceholder =
228+
value === "0" && !this.isStringEmpty(this.props.placeholder);
229+
return hasPlaceholder
230+
? ""
231+
: value.replace(
232+
".",
233+
!this.isStringEmpty(this.props.decimalSeparator)
234+
? this.props.decimalSeparator
235+
: "."
236+
);
235237
}
236238

237239
/**
@@ -803,7 +805,9 @@ class InputSpinner extends Component {
803805
*/
804806
render() {
805807
return (
806-
<View style={this._getContainerStyle()} {...this.props.containerProps}>
808+
<View
809+
style={this._getContainerStyle()}
810+
{...this.props.containerProps}>
807811
{this._renderLeftButton()}
808812

809813
{this.props.prepend}

0 commit comments

Comments
 (0)