From 58ed20254417d19d29262e9dd2c07976c096884a Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 9 Apr 2022 03:34:18 +0900 Subject: [PATCH 1/2] pull --- .env | 2 +- package.json | 2 +- public/index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index e3b31ff..bb6a9ba 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -REACT_APP_BASEURL = 'http://3.38.93.184:8080/' +REACT_APP_BASEURL = 'https://www.amattang.shop/' diff --git a/package.json b/package.json index 120ae20..05c283c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "INLINE_RUNTIME_CHUNK=false react-scripts build", + "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/public/index.html b/public/index.html index 3862bea..4b52a84 100644 --- a/public/index.html +++ b/public/index.html @@ -5,10 +5,10 @@ - + /> Date: Sat, 9 Apr 2022 03:44:36 +0900 Subject: [PATCH 2/2] fix: null error --- .../CheckListButton/TypeCButton.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/CheckListButton/TypeCButton.tsx b/src/components/CheckListButton/TypeCButton.tsx index d7d6f56..a99357b 100644 --- a/src/components/CheckListButton/TypeCButton.tsx +++ b/src/components/CheckListButton/TypeCButton.tsx @@ -7,16 +7,18 @@ function TypeCButton({ answer }: IProps) { // console.log(answer); return ( <> - - {answer.some((answerItem) => answerItem) && - answer.map((answerItem, index) => ( -
- - - -
- ))} -
+ {answer && ( + + {answer.some((answerItem) => answerItem) !== null && + answer.map((answerItem, index) => ( +
+ + + +
+ ))} +
+ )} ); }