I got the following code:
export default function CancelledPayment() { const linkPage = <Link to="/dashboard/payment" className={clsx(classes.paymentLinkTypography, classes.link)}> here </Link>; return ( <Container> <Paper > <Paper /> <Typography> {` To go back to your order please click ${linkPage}.You will be redirect in ${count} seconds.`} </Typography> </Paper> </Container> ); } Any idea why is it returning linkPage as [object Object]? The counter is correct, everything is working fine just this linkPage is not okay. If I took it out like:
To go back to your order please click {linkPage}. {`You will be redirect in ${count} seconds.`} it is working fine, also in some other cases, but I would like everything to be in one line, using template string.
linkPageconsist of? I can give you the answer or help you get to it yourself lol. Which one would you like?