Skip to content

Comments

Stephen Swaringin - Redux Eval#12

Open
sswaringin wants to merge 14 commits intoprojectshft:mainfrom
sswaringin:main
Open

Stephen Swaringin - Redux Eval#12
sswaringin wants to merge 14 commits intoprojectshft:mainfrom
sswaringin:main

Conversation

@sswaringin
Copy link

No description provided.

try {
dispatch(fetchForecast(search)); // Dispatch asyncThunk in cities slice
} catch (error) {
console.error(error);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't help in terms of UX, alert or showing errors is better

<Sparklines data={data} width={100} height={30}>
<SparklinesLine style={{stroke: color, strokeWidth: ".75", fill: color, fillOpacity: ".25"}}/>
<SparklinesReferenceLine type={lineType}/>
{/* <SparklinesSpots size={.75} style={{stroke: color, fill: color}}/> */}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code

Comment on lines +42 to +50
<div>Avg: {avg(avgTempsPerDay)} F</div>
</td>
<td>
<NewSparkline data={highAndLowPressures} color='green'/>
<div>Avg: {avg(avgPressuresPerDay)} hPa</div>
</td>
<td>
<NewSparkline data={highAndLowHumidities} color='blue'/>
<div>Avg: {avg(avgHumiditiesPerDay)} %</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are doing all the average, why here calling avg again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants