Update packages/web/components/EditProfileModal.tsx

Co-authored-by: δυς <dys@dhappy.org>
This commit is contained in:
Dan OneTree
2022-10-04 21:20:14 +05:30
parent 3eecb3aa22
commit 99648a2ada

View File

@@ -115,8 +115,7 @@ export const EditProfileModal: React.FC<ProfileEditorProps> = ({
}) => {
const [status, setStatus] = useState<Maybe<ReactElement | string>>();
// eslint-disable-next-line react-hooks/exhaustive-deps
const username = useMemo(() => player?.profile?.username, []);
const username = player?.profile?.username;
const params = useRouter();
const debug = !!params.query.debug;
const saveToCeramic = useSaveCeramicProfile({ debug, setStatus });