-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Added new metrics event nft image viewed #2587
Conversation
|
||
React.useEffect(() => { | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
if (!nft?.id) return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use if(!isString(nft?.id))
to avoid eslint-disable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichalSzorad I've migrated to our useParams
here (a62fc0d)
export const NftDetailsImage = () => { | ||
const {id} = useRoute<RouteProp<NftRoutes, 'nft-details'>>().params | ||
const {id} = useParams<Params>(isParams) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jorbuedo we have useParams
which takes a ts safe guard fn, since .params are unsafe.
New event added
Relates to YOMO-617