diff --git a/client/src/service/scrap/getIsScrapPost.ts b/client/src/service/scrap/getIsScrapPost.ts index 448fb86..4ece768 100644 --- a/client/src/service/scrap/getIsScrapPost.ts +++ b/client/src/service/scrap/getIsScrapPost.ts @@ -9,7 +9,7 @@ export default async function getIsScrapPost({ const result = await axios_get({ suburl }); - if (!result.isOkay) { + if (!result.isOkay || result.data === undefined) { throw result.error; }