We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da51a0e commit bb48816Copy full SHA for bb48816
ch9_SNSApp/src/Context/RandomUserData/index.tsx
@@ -71,17 +71,12 @@ const RandomUserDataProvider = ({cache, children}: Props) => {
71
72
try {
73
const response = await fetch(
74
- 'https://opinionated-quotes-api.gigalixirapp.com/v1/quotes?rand=t&n=25',
+ 'https://raw.githubusercontent.com/dev-yakuza/users/master/lorem.json',
75
);
76
const data = await response.json();
77
78
- let text = [];
79
- for (const index in data.quotes) {
80
- text.push(data.quotes[index].quote);
81
- }
82
-
83
- setDescriptionList(text);
84
- setCachedData('DescriptionList', text);
+ setDescriptionList(data);
+ setCachedData('DescriptionList', data);
85
} catch (error) {
86
console.log(error);
87
}
0 commit comments