You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/2/en/part2e.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -550,11 +550,11 @@ The effect has the following condition
550
550
551
551
```js
552
552
if (currency) {
553
-
//haetaan valuuttakurssit
553
+
//exchange rates are fetched
554
554
}
555
555
```
556
556
557
-
which prevents requesting the exchange rates just after the first render when the variable _currency_ still has the initial value, i.e. an empty string.
557
+
which prevents requesting the exchange rates just after the first render when the variable _currency_ still has the initial value, i.e. a null value.
558
558
559
559
So if the user writes e.g. <i>eur</i> in the search field, the application uses Axios to perform an HTTP GET request to the address https://open.er-api.com/v6/latest/eur and stores the response in the _rates_ state.
0 commit comments