33} from '@mui/material'
44import { assertEx } from '@xylabs/assert'
55import { type Hash , isHash } from '@xylabs/hex'
6- import { isDefined } from '@xylabs/typeof'
6+ import { isDefined , isUndefined } from '@xylabs/typeof'
77import type { Id } from '@xyo-network/id-payload-plugin'
88import { PayloadBuilder } from '@xyo-network/payload-builder'
99import { type HashPayload } from '@xyo-network/xl1-protocol'
@@ -12,7 +12,6 @@ import { useState } from 'react'
1212import {
1313 RunProducerAlerts , TxConfirmedAlert , WalletAlerts ,
1414} from './components/index.ts'
15- import { hasXyoWalletInjectable } from './hasXyoWalletInjectable.ts'
1615import { useDefaultGateway , useOnBoarding } from './hooks/index.ts'
1716// eslint-disable-next-line import-x/no-internal-modules
1817import Xl13DLogo from './images/XL1_3D_Token_Mainnet.svg'
@@ -79,7 +78,7 @@ export const XL1BrowserSample = () => {
7978 { showSubmitTransaction === true && (
8079 < Stack alignItems = "start" >
8180 { /* {gatewayError ? <Alert severity="error">{gatewayError.message}</Alert> : null } */ }
82- < Button variant = "contained" onClick = { ( ) => void submitTransaction ( ) } disabled = { ! hasXyoWalletInjectable ( ) } > Submit Transaction</ Button >
81+ < Button variant = "contained" onClick = { ( ) => void submitTransaction ( ) } disabled = { isUndefined ( gateway ) } > Submit Transaction</ Button >
8382 </ Stack >
8483 ) }
8584 { isDefined ( confirmed ) && < TxConfirmedAlert hash = { confirmed } /> }
0 commit comments