File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
packages/app/features/deposit Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const Page: NextPageWithLayout = () => {
9
9
return (
10
10
< >
11
11
< Head >
12
- < title > Send | Desposit </ title >
12
+ < title > Send | Deposit </ title >
13
13
</ Head >
14
14
< DepositScreen />
15
15
</ >
@@ -19,7 +19,7 @@ export const Page: NextPageWithLayout = () => {
19
19
export const getServerSideProps = userProtectedGetSSP ( )
20
20
21
21
Page . getLayout = ( children ) => (
22
- < HomeLayout TopNav = { < TopNav header = "Desposit " /> } > { children } </ HomeLayout >
22
+ < HomeLayout TopNav = { < TopNav header = "Deposit " /> } > { children } </ HomeLayout >
23
23
)
24
24
25
25
export default Page
Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ export function DepositWelcome(props: YStackProps) {
36
36
37
37
< Fade >
38
38
< Stack gap = { '$4' } w = { '100%' } $gtMd = { { flexDirection : 'row' } } >
39
- < DespositWeb3Link />
40
- < DespositCoinbasePay />
39
+ < DepositWeb3Link />
40
+ < DepositCoinbasePay />
41
41
</ Stack >
42
42
</ Fade >
43
43
</ YStack >
44
44
</ YStack >
45
45
)
46
46
}
47
47
48
- function DespositWeb3Link ( ) {
48
+ function DepositWeb3Link ( ) {
49
49
return (
50
50
< DepositStackButton >
51
51
< DepositButton
@@ -60,7 +60,7 @@ function DespositWeb3Link() {
60
60
)
61
61
}
62
62
63
- function DespositCoinbasePay ( ) {
63
+ function DepositCoinbasePay ( ) {
64
64
const toast = useToastController ( )
65
65
return (
66
66
< DepositStackButton disabled disabledStyle = { { opacity : 0.5 } } >
Original file line number Diff line number Diff line change @@ -393,10 +393,12 @@ function FailsafeChainId({ children }: { children: React.ReactNode }) {
393
393
const [ error , setError ] = useState < string > ( )
394
394
const [ ignoreError , setIgnoreError ] = useState ( false )
395
395
const { open : openWeb3Modal } = useWeb3Modal ( )
396
+ // @ts -expect-error wagmi connector ensures this is there
397
+ const canCheckChainId = isWeb && window . ethereum
396
398
397
399
// biome-ignore lint/correctness/useExhaustiveDependencies: hack
398
400
useEffect ( ( ) => {
399
- if ( isWeb ) {
401
+ if ( canCheckChainId ) {
400
402
// @ts -expect-error wagmi connector ensures this is there
401
403
window . ethereum
402
404
. request ( { method : 'eth_chainId' } )
@@ -405,7 +407,7 @@ function FailsafeChainId({ children }: { children: React.ReactNode }) {
405
407
}
406
408
} , [ chainId , openWeb3Modal ] )
407
409
408
- if ( ! isWeb ) return children // we don't need to do anything on non-web
410
+ if ( ! canCheckChainId ) return children // we don't need to do anything on non-web or wallet connect somtimes does not add ethereum provider
409
411
410
412
if ( failsafeChainId === undefined ) {
411
413
return (
You can’t perform that action at this time.
0 commit comments