diff --git a/src/components/CompatResultPage/index.tsx b/src/components/CompatResultPage/index.tsx index a659241..18a2527 100644 --- a/src/components/CompatResultPage/index.tsx +++ b/src/components/CompatResultPage/index.tsx @@ -11,6 +11,7 @@ function CompatResultPage(): JSX.Element { "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIzNjEyLCJpYXQiOjE2OTM0MTg5MTAsImV4cCI6MTcwMjA1ODkxMCwianRpIjoiNzg5MjkwYWItODg0YS00MGUyLTkyNjEtOWI2OGEyNjkwNmE0IiwiZW1haWwiOiJvdGhlckBleGFtcGxlLmNvbSIsInN0YXRlIjoicHJvdmVuIiwibG9jIjoiZW4iLCJ0eiI6LTI4ODAwLCJ0eXBlIjoiZW1haWwiLCJpc3MiOiJjb20ubGlmZS5hdXJhIn0.J2ocWIv5jKzuKMcwMgWMiNMyGg5qLlMAeln-bQm_9lw"; const { t } = useTranslation(); const api = useApi(); + const birthdate = useSelector(selectors.selectBirthdate); const rightUser = useSelector(selectors.selectRightUser); const categoryId = useSelector(selectors.selectCategoryId); const [text, setText] = useState("Loading..."); @@ -22,8 +23,8 @@ function CompatResultPage(): JSX.Element { : `${rightUser.birthDate.year}-${rightUser.birthDate.month}-${rightUser.birthDate.day}`; const data: AICompats.Payload = { data: { - left_name: "John", - left_bday: "1970-01-01", + left_name: "I am", + left_bday: birthdate, right_name: rightUser.name, right_bday, category_id: categoryId, @@ -55,9 +56,6 @@ function CompatResultPage(): JSX.Element { return (
- - {"46%"} - {t("you_and", { user: rightUser.name })}