fix: change status page depending on desktop mode (#573)
* fix: change status page depending on desktop mode * refactor: check desktop reachability periodically
This commit is contained in:
@@ -11,8 +11,9 @@ import { CheckState, Context } from '../../../providers/Bee'
|
||||
const ChequebookDeployFund = (): ReactElement | null => {
|
||||
const { status, isLoading, chequebookAddress } = useContext(Context)
|
||||
const { checkState, isEnabled } = status.chequebook
|
||||
const { checkState: debugApiCheckState } = status.debugApiConnection
|
||||
|
||||
if (!isEnabled) return null
|
||||
if (!isEnabled || debugApiCheckState === CheckState.ERROR) return null
|
||||
|
||||
let text: ReactNode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user