Skip to content

Commit

Permalink
πŸš€ Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 authored Nov 14, 2024
2 parents 79aeb9f + 49b5772 commit e060d62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/rankingBox/RankingBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import * as S from "./styled";
export const RankingBox = ({ NuguIntroRank }) => {
const rank = [2, 1, 3];
const isNuguIntroRank =
Object.keys(NuguIntroRank).length > 0 ? NuguIntroRank : null;
NuguIntroRank && Object.keys(NuguIntroRank).length > 0
? NuguIntroRank
: null;
return (
<S.RankingContainer>
{rank.map((item) => {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/nuguIntro/NuguIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const NuguIntro = () => {
fetchData();
}, [uuid]);

const isNuguIntro = Object.keys(introList).length > 0 ? introList : null;
const isNuguIntro =
introList && Object.keys(introList).length > 0 ? introList : null;
console.log("isNuguIntro", isNuguIntro);
const moveOnintro = () => {
navigate(`/nuguIntro/write/${uuid}`);
Expand Down

0 comments on commit e060d62

Please sign in to comment.