Skip to content

Commit

Permalink
- Rename variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwiebell committed Feb 6, 2020
1 parent 2746e6c commit cf8fd2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useShippingForm = props => {
variables: { countryCode: selectedValues.country }
});

const [setShippingAddress, { loading: setShippingLoading }] = useMutation(
const [setShippingAddress, { loading: isSetShippingLoading }] = useMutation(
setShippingMutation
);

Expand Down Expand Up @@ -162,7 +162,7 @@ export const useShippingForm = props => {
handleOnSubmit,
handleZipChange,
isCountriesLoading,
setShippingLoading,
isSetShippingLoading,
states: formattedStatesData
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ShippingForm = props => {
handleOnSubmit,
handleZipChange,
isCountriesLoading,
setShippingLoading,
isSetShippingLoading,
states
} = useShippingForm({
getCountriesQuery: GET_COUNTRIES_QUERY,
Expand Down Expand Up @@ -82,11 +82,11 @@ const ShippingForm = props => {
{!hasMethods ? (
<Button
classes={{ root_normalPriority: classes.submit }}
disabled={setShippingLoading}
disabled={isSetShippingLoading}
priority="normal"
type="submit"
>
{setShippingLoading
{isSetShippingLoading
? 'Loading Methods...'
: 'Get Shipping Options'}
</Button>
Expand Down

0 comments on commit cf8fd2e

Please sign in to comment.