- {data != null ? (
- data.slice(0, 8).map((item: ApiAiringMidiaResults, key: number) => (
-
+ {data.length > 0 ? (
+ (data as ApiAiringMidiaResults[]).slice(0, 8).map((item: ApiAiringMidiaResults, key: number) => (
+
))
) : (
-
Nothing Releasing Today
+
+ {daysRange == 1 && "Nothing Releasing Today"}
+ {daysRange == 7 && "Nothing Released in 7 Days"}
+ {daysRange == 30 && "Nothing Released in 30 Days"}
+
)}