Skip to content

Commit

Permalink
feat: 분기 처리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
리니_이경린 committed Nov 28, 2024
1 parent 4e1b8f2 commit 253f7e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/admin/(components)/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function Sidebar(props: Props) {
</button>
</li>
</ul>
{!status?.includes("SUBSCRIPTION") && (
{!(status === "SUBSCRIPTION") && (
<div className="sidebar__subscribe">
<p className="sidebar__subscribe-title">
구독하고 힌트에 사진을 추가해 보세요
Expand Down
2 changes: 1 addition & 1 deletion app/admin/(components)/ThemeDrawer/hooks/useImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const useImages = ({
};

const handleAddImageBtnClick = (e: MouseEvent<HTMLButtonElement>) => {
if (!status?.includes("SUBSCRIPTION")) {
if (!(status === "SUBSCRIPTION")) {
e.preventDefault();
window.open(subscribeLinkURL, "_blank", "noopener,noreferrer");
return;
Expand Down
2 changes: 1 addition & 1 deletion app/queries/getPreSignedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const useHintUpload = () => {
PreSignedUrlRequest
>({
mutationFn: async (params) => {
if (status?.includes("SUBSCRIPTION")) {
if (status === "SUBSCRIPTION") {
return getPreSignedUrl(params);
}
return {
Expand Down
2 changes: 1 addition & 1 deletion app/utils/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const setLoginInfo = (loginInfo: LoginInfo) => {
};

export const setStatus = (status: string) => {
setLocalStorage(STATUS, JSON.stringify(status));
setLocalStorage(STATUS, JSON.stringify(status.replace(/["/]/g, "")));
};

export const setSelectedThemeId = (themeId: number) => {
Expand Down

0 comments on commit 253f7e5

Please sign in to comment.