1 00:00:01,460 --> 00:00:06,680 Let's take a look at a solution, so I'm going to first take a look at my dream list as file. 2 00:00:07,320 --> 00:00:08,890 So here's our dream list component. 3 00:00:09,170 --> 00:00:12,960 We're going to make a change to the logic that actually renders out the list inside of here. 4 00:00:13,430 --> 00:00:16,490 I'm going to scroll down a little bit and find the render list method. 5 00:00:17,310 --> 00:00:20,450 So inside of here, we are mapping over the entire streams array. 6 00:00:21,420 --> 00:00:27,030 And then for right now, we are always returning some d'Hiv with the class name of item to one way that 7 00:00:27,030 --> 00:00:31,680 we could implement this new feature would be to just add a little check inside this mapping function 8 00:00:32,460 --> 00:00:33,770 right above the return statement. 9 00:00:33,810 --> 00:00:38,030 We could take a look and see if this got props. 10 00:00:38,250 --> 00:00:46,980 Dot current user ID is equal to or in this case we actually want not equal to stream dot user ID. 11 00:00:48,220 --> 00:00:53,610 So those are not the same then we could just return null or return early out of this mapping function 12 00:00:53,610 --> 00:00:55,500 and not return any jazz at all. 13 00:00:56,130 --> 00:00:58,740 So in this case, I'll do a return null like so. 14 00:01:00,010 --> 00:01:04,930 And now we can see very easily that we are only rendering the streams that were created by the current 15 00:01:04,930 --> 00:01:05,290 user. 16 00:01:06,980 --> 00:01:08,810 So I'd say this looks like a good solution. 17 00:01:09,200 --> 00:01:11,870 I'm going to check the solution and just make sure it passes the test. 18 00:01:14,270 --> 00:01:14,870 There we go. 19 00:01:15,370 --> 00:01:16,460 OK, looks good. 20 00:01:16,490 --> 00:01:19,630 Let's take a pause here and continue with our application in just a moment.