diff --git a/src/components/editLogoPopup/EditLogoPopup.tsx b/src/components/editLogoPopup/EditLogoPopup.tsx index b284490..0e79b14 100644 --- a/src/components/editLogoPopup/EditLogoPopup.tsx +++ b/src/components/editLogoPopup/EditLogoPopup.tsx @@ -13,6 +13,7 @@ import { PopupTitle, } from "components/editLogoPopup/styled"; import { useJettonLogo } from "hooks/useJettonLogo"; +import QuestiomMarkImg from "assets/icons/question.png"; interface EditLogoPopupProps { showPopup: boolean; @@ -40,7 +41,7 @@ export const EditLogoPopup = ({ }; useEffect(() => { - setTempUrl(jettonLogo.logoUrl); + setTempUrl(jettonLogo.logoUrl === QuestiomMarkImg ? "" : jettonLogo.logoUrl); }, [showPopup]); return ( @@ -50,6 +51,7 @@ export const EditLogoPopup = ({ setInputFocus(true)} onBlur={() => setInputFocus(false)} diff --git a/src/hooks/useJettonLogo.tsx b/src/hooks/useJettonLogo.tsx index 0730faf..ff6b7b9 100644 --- a/src/hooks/useJettonLogo.tsx +++ b/src/hooks/useJettonLogo.tsx @@ -22,7 +22,6 @@ export const useJettonLogo = () => { const [jettonLogo, setJettonLogo] = useRecoilState(jettonLogoState); const { jettonImage } = useJettonStore(); const { jettonAddress } = useJettonAddress(); - const resetJetton = () => setJettonLogo(defaultState); const setLogoUrl = (val: string) =>