Skip to content

Commit dec4f9a

Browse files
committed
small fix
1 parent ca6fbd5 commit dec4f9a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lessons/04-async-await/practice/index.final.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function main() {
6363
// Promise.all for Promise.allSettled to see how that changes things
6464

6565
// async function getVehicle(url: string) {
66-
// if (url === '${API}/vehicles/30/') {
66+
// if (url === `${API}/vehicles/30/`) {
6767
// return Promise.reject('404: Not Found')
6868
// } else {
6969
// const response = await fetch(url)

lessons/04-async-await/practice/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ main()
6262
// Promise.all for Promise.allSettled to see how that changes things
6363

6464
// async function getVehicle(url: string) {
65-
// if (url === '${API}/vehicles/30/') {
65+
// if (url === `${API}/vehicles/30/`) {
6666
// return Promise.reject('404: Not Found')
6767
// } else {
6868
// const response = await fetch(url)

0 commit comments

Comments
 (0)