fix: waiting for script to be ready (#609)

This commit is contained in:
Linkie Link 2023-11-02 20:19:18 +01:00 committed by GitHub
parent 54c6a99c2f
commit e86e2fee77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,8 @@ interface Props {
} }
export default function TradeChart(props: Props) { export default function TradeChart(props: Props) {
const [isScriptReady, setIsScriptReady] = useState(true) const [isScriptReady, setIsScriptReady] = useState(false)
return ( return (
<> <>
<Script <Script