-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: show ckb hodl wave chart #254
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
assertSerialsItem(data) | ||
assertSerialsDataIsStringArrayOf9(data) |
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.
It's better to wrap them in a try catch
block to prevent from page crash when the data is invalid.
Signed-off-by: Miles Zhang <[email protected]>
Signed-off-by: Miles Zhang <[email protected]>
Signed-off-by: Miles Zhang <[email protected]>
Signed-off-by: Miles Zhang <[email protected]>
@@ -2,6 +2,7 @@ import { ReactNode } from 'react' | |||
import 'default-passive-events' | |||
import { useTranslation } from 'react-i18next' | |||
import Content from '../../components/Content' | |||
import { isMainnet } from '../../utils/chain' |
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.
isMainnet
can be replaced by IS_MAINNET
at https://github.com/nervosnetwork/ckb-explorer-frontend/blob/develop/src/constants/common.ts#L23 to avoid a function call
Magickbase/ckb-explorer-public-issues#424