@@ -7,29 +7,29 @@ import whatIsEthereumAudio from "@/audio/what-is-ethereum/what-is-ethereum.mp3"
77export const listenToPlaylists = {
88 learn : [
99 {
10- title : "what-is-ether " ,
11- audioFile : ethAudio ,
12- slug : "/eth " ,
10+ title : "what-is-ethereum " ,
11+ audioFile : whatIsEthereumAudio ,
12+ slug : "/what-is-ethereum/ " ,
1313 } ,
1414 {
15- title : "smart-contracts " ,
16- audioFile : smartContractsAudio ,
17- slug : "/smart-contracts " ,
15+ title : "what-is-ether " ,
16+ audioFile : ethAudio ,
17+ slug : "/eth/ " ,
1818 } ,
1919 {
2020 title : "wallets" ,
2121 audioFile : walletsAudio ,
22- slug : "/wallets" ,
22+ slug : "/wallets/ " ,
2323 } ,
2424 {
2525 title : "web3" ,
2626 audioFile : web3Audio ,
27- slug : "/web3" ,
27+ slug : "/web3/ " ,
2828 } ,
2929 {
30- title : "what-is-ethereum " ,
31- audioFile : whatIsEthereumAudio ,
32- slug : "/what-is-ethereum " ,
30+ title : "smart-contracts " ,
31+ audioFile : smartContractsAudio ,
32+ slug : "/smart-contracts/ " ,
3333 } ,
3434 ] ,
3535}
@@ -46,5 +46,5 @@ export const getPlaylistBySlug = (
4646 return { playlist, index }
4747 }
4848 }
49- throw new Error ( `Playlist with slug " ${ slug } " not found` )
49+ return { playlist : [ ] , index : - 1 }
5050}
0 commit comments