Skip to content

Commit c1725eb

Browse files
committed
fix(UI): Round displayed snow values in resort list and route planner.
1 parent db626b7 commit c1725eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ResortList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const ResortList: React.FC<ResortListProps> = ({ resorts: initialResorts,
199199
<div style={{ textAlign: 'right' }}>
200200
<div style={{ display: 'flex', alignItems: 'center', color: 'var(--color-primary)', fontWeight: 'bold', justifyContent: 'flex-end' }}>
201201
<Snowflake size={20} style={{ marginRight: '0.25rem' }} />
202-
{resort.snow24h}"
202+
{Math.round(resort.snow24h)}"
203203
</div>
204204
{resort.temp !== undefined && (
205205
<div style={{ fontSize: '0.8rem', color: '#666' }}>

src/components/RoutePlanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ export const RoutePlanner: React.FC<RoutePlannerProps> = ({
554554
</div>
555555
<div>
556556
<div style={{ fontSize: '1.25rem', fontWeight: 'bold', color: '#2563eb' }}>
557-
{snowForecast !== undefined ? `${snowForecast}"` : '-'}
557+
{snowForecast !== undefined ? `${Math.round(snowForecast)}"` : '-'}
558558
</div>
559559
<div style={{ fontSize: '0.875rem', color: '#6b7280', marginTop: '0.25rem' }}>New Snow</div>
560560
</div>

0 commit comments

Comments
 (0)