Skip to content

Commit

Permalink
[fix] data undefined 에러 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-younique committed Mar 11, 2024
1 parent e131663 commit 27ca9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/service/scrap/getIsScrapPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function getIsScrapPost({

const result = await axios_get<boolean>({ suburl });

if (!result.isOkay) {
if (!result.isOkay || result.data === undefined) {
throw result.error;
}

Expand Down

0 comments on commit 27ca9be

Please sign in to comment.