Hide payouts on no accounts (#2779)
* Hide payouts on no accounts * Redirect timeout
This commit is contained in:
parent
e38b27ad90
commit
4c63371318
@ -87,7 +87,7 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement<Props>
|
||||
const hiddenTabs = useMemo(
|
||||
(): string[] =>
|
||||
!hasAccounts
|
||||
? ['actions', 'query']
|
||||
? ['actions', 'payouts', 'query']
|
||||
: !hasQueries
|
||||
? ['returns', 'query']
|
||||
: [],
|
||||
|
||||
@ -16,7 +16,7 @@ async function main () {
|
||||
<html>
|
||||
<head>
|
||||
<title>Redirecting to latest deployed IPFS instance</title>
|
||||
<meta http-equiv="refresh" content="2; url=${url}" />
|
||||
<meta http-equiv="refresh" content="0; url=${url}" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting you to <a href="${url}">${url}</a></p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user