We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a68e0 commit 99dea64Copy full SHA for 99dea64
packages/canonical-bridge/src/views/index.tsx
@@ -40,7 +40,7 @@ export const CanonicalBridge = (props: CanonicalBridgeProps) => {
40
const { setLastUpdated: refresh } = useLastUpdated()
41
42
useEffect(() => {
43
- if (typeof document !== 'undefined') {
+ if (typeof document !== 'undefined' && document) {
44
const inputElement = document.querySelector('.bccb-widget-transfer-input') as HTMLInputElement | null
45
if (inputElement) {
46
inputElement.setAttribute('pattern', '^[0-9]*[.,]?[0-9]*$')
0 commit comments