Skip to content

Commit

Permalink
- Use value instead of casting false to null
Browse files Browse the repository at this point in the history
- Update tests
  • Loading branch information
tjwiebell committed Feb 5, 2020
1 parent 23e9cb5 commit f9a3c8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ Array [
</div>
<button
className="root_normalPriority"
disabled={null}
type="submit"
>
<span
Expand Down Expand Up @@ -213,7 +212,7 @@ Array [
>
<select
className="input"
disabled={null}
disabled={false}
name="country"
onBlur={[Function]}
onChange={[Function]}
Expand Down Expand Up @@ -355,7 +354,6 @@ Array [
</div>
<button
className="root_normalPriority"
disabled={null}
type="submit"
>
<span
Expand Down Expand Up @@ -404,7 +402,7 @@ Array [
>
<select
className="input"
disabled={null}
disabled={false}
name="country"
onBlur={[Function]}
onChange={[Function]}
Expand Down Expand Up @@ -588,7 +586,6 @@ Array [
</div>
<button
className="root_normalPriority"
disabled={null}
type="submit"
>
<span
Expand Down Expand Up @@ -637,7 +634,7 @@ Array [
>
<select
className="input"
disabled={null}
disabled={false}
name="country"
onBlur={[Function]}
onChange={[Function]}
Expand Down Expand Up @@ -859,7 +856,7 @@ Array [
>
<select
className="input"
disabled={null}
disabled={false}
name="country"
onBlur={[Function]}
onChange={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const ShippingForm = props => {
classes={{ root: classes.country }}
>
<Select
disabled={isCountriesLoading ? true : null}
disabled={isCountriesLoading}
field="country"
items={countries}
onValueChange={handleCountryChange}
Expand All @@ -82,7 +82,7 @@ const ShippingForm = props => {
{!hasMethods ? (
<Button
classes={{ root_normalPriority: classes.submit }}
disabled={setShippingLoading ? true : null}
disabled={setShippingLoading}
priority="normal"
type="submit"
>
Expand Down

0 comments on commit f9a3c8e

Please sign in to comment.