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.
2 parents 922a686 + 5e5e190 commit 254991dCopy full SHA for 254991d
src/hooks/option.js
@@ -17,7 +17,7 @@ const useOption = () => {
17
const [error, setError] = useState(false);
18
19
const getImgUrl = (query = querystring) => {
20
- return error?Error:`/api/card?${query}`;
+ return error?(Error.src):`/api/card?${query}`;
21
};
22
23
const updateQuerystring = () => {
src/pages/index.js
@@ -145,7 +145,7 @@ export default function Home() {
145
</Col>
146
147
<Col className="image-output">
148
- <Image src={getImgUrl()} alt="Codeforces-Stats" fill="width" onError={onError} onLoad={onLoad}/>
+ <img src={getImgUrl()} alt="Codeforces-Stats" fill="width" onError={onError} onLoad={onLoad}/>
149
150
151
</Row>
0 commit comments