@@ -7,29 +7,29 @@ import whatIsEthereumAudio from "@/audio/what-is-ethereum/what-is-ethereum.mp3"
7
7
export const listenToPlaylists = {
8
8
learn : [
9
9
{
10
- title : "what-is-ether " ,
11
- audioFile : ethAudio ,
12
- slug : "/eth " ,
10
+ title : "what-is-ethereum " ,
11
+ audioFile : whatIsEthereumAudio ,
12
+ slug : "/what-is-ethereum/ " ,
13
13
} ,
14
14
{
15
- title : "smart-contracts " ,
16
- audioFile : smartContractsAudio ,
17
- slug : "/smart-contracts " ,
15
+ title : "what-is-ether " ,
16
+ audioFile : ethAudio ,
17
+ slug : "/eth/ " ,
18
18
} ,
19
19
{
20
20
title : "wallets" ,
21
21
audioFile : walletsAudio ,
22
- slug : "/wallets" ,
22
+ slug : "/wallets/ " ,
23
23
} ,
24
24
{
25
25
title : "web3" ,
26
26
audioFile : web3Audio ,
27
- slug : "/web3" ,
27
+ slug : "/web3/ " ,
28
28
} ,
29
29
{
30
- title : "what-is-ethereum " ,
31
- audioFile : whatIsEthereumAudio ,
32
- slug : "/what-is-ethereum " ,
30
+ title : "smart-contracts " ,
31
+ audioFile : smartContractsAudio ,
32
+ slug : "/smart-contracts/ " ,
33
33
} ,
34
34
] ,
35
35
}
@@ -46,5 +46,5 @@ export const getPlaylistBySlug = (
46
46
return { playlist, index }
47
47
}
48
48
}
49
- throw new Error ( `Playlist with slug " ${ slug } " not found` )
49
+ return { playlist : [ ] , index : - 1 }
50
50
}
0 commit comments