Skip to content

Commit 5e5e190

Browse files
committed
temporary fix
1 parent 922a686 commit 5e5e190

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hooks/option.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const useOption = () => {
1717
const [error, setError] = useState(false);
1818

1919
const getImgUrl = (query = querystring) => {
20-
return error?Error:`/api/card?${query}`;
20+
return error?(Error.src):`/api/card?${query}`;
2121
};
2222

2323
const updateQuerystring = () => {

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default function Home() {
145145
</Col>
146146

147147
<Col className="image-output">
148-
<Image src={getImgUrl()} alt="Codeforces-Stats" fill="width" onError={onError} onLoad={onLoad}/>
148+
<img src={getImgUrl()} alt="Codeforces-Stats" fill="width" onError={onError} onLoad={onLoad}/>
149149
</Col>
150150

151151
</Row>

0 commit comments

Comments
 (0)