Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement miles/kilometer selector #252

Merged
merged 11 commits into from
Oct 6, 2019
Prev Previous commit
Next Next commit
Update App/stores/distanceUnit.tsx
Co-Authored-By: Amaury Martiny <[email protected]>
  • Loading branch information
matepapp and amaury1093 committed Oct 6, 2019
commit 699dfbf8e748b53cf2861a06fbf11f3f9d6aa9ef
2 changes: 1 addition & 1 deletion App/stores/distanceUnit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DistanceUnitProvider: FC = ({ children }) => {

const getDistanceUnit = async (): Promise<void> => {
const unit = await AsyncStorage.getItem(STORAGE_KEY);
if ((unit && unit === 'km') || (unit && unit === 'mile')) {
if (unit === 'km' || unit === 'mile') {
setDistanceUnit(unit);
}
};
Expand Down