refactor fx
This commit is contained in:
@@ -19,11 +19,7 @@ export const getWeekDay = (weatherData) => {
|
||||
|
||||
export const isPM = (time) => {
|
||||
let hours = time.split(":")[0];
|
||||
if (hours >= 12) {
|
||||
return "PM";
|
||||
} else {
|
||||
return "AM";
|
||||
}
|
||||
return hours >= 12 ? "PM" : "AM";
|
||||
};
|
||||
|
||||
export const getWindSpeed = (systemUsed, windInMph) =>
|
||||
|
||||
Reference in New Issue
Block a user