Skip to content

Commit

Permalink
fixed unnecessary decimal values showing
Browse files Browse the repository at this point in the history
  • Loading branch information
githubAmanKumar committed Apr 30, 2024
1 parent 64aecdc commit c937241
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Components/WeatherApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function WeatherApp() {
<div className="windImage">
<img src={wind_icon} alt="" />
</div>
<div className="windValue"> {city.wind.speed * 3} km/hr Wind Speed</div>
<div className="windValue"> {Math.round(city.wind.speed * 3)} km/hr Wind Speed</div>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/React-Weather-App/',
})

0 comments on commit c937241

Please sign in to comment.