Skip to content

Commit 6e71235

Browse files
committed
fix: remove required login message in TaskRawData
1 parent b011702 commit 6e71235

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/modules/tasks/task/TaskRawData.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { TABLE_REFETCH_INTERVAL } from '@/config';
22
import { useQuery } from '@tanstack/react-query';
33
import { useEffect } from 'react';
4-
import { Button } from '@/components/ui/button';
54
import { getIExec } from '@/externals/iexecSdkClient';
6-
import { useLoginLogout } from '@/hooks/useLoginLogout';
75
import { ErrorAlert } from '@/modules/ErrorAlert';
86
import JsonBlock from '@/modules/JsonBlock';
97
import useUserStore from '@/stores/useUser.store';
@@ -77,8 +75,6 @@ export function TaskRawData({
7775
() => setOutdated(tasks && !isLoading && isError),
7876
[tasks, isLoading, isError, setOutdated]
7977
);
80-
const { address: userAddress } = useUserStore();
81-
const { login } = useLoginLogout();
8278

8379
return hasPastError && (!tasks || !tasks.length) ? (
8480
<ErrorAlert
@@ -88,17 +84,7 @@ export function TaskRawData({
8884
/>
8985
) : (
9086
<div className="dark:bg-tooltip flex max-h-none min-h-60 rounded-3xl border bg-[#fafaff] p-6">
91-
{!userAddress ? (
92-
<div className="flex flex-1 flex-col items-center justify-center gap-6 text-center">
93-
<h1 className="text-2xl font-bold">You are not connected</h1>
94-
<p className="text-muted-foreground max-w-sm">
95-
To access task raw data please connect your wallet.
96-
</p>
97-
<div className="flex gap-4">
98-
<Button onClick={login}>Connect wallet</Button>
99-
</div>
100-
</div>
101-
) : isLoading ? (
87+
{isLoading ? (
10288
<p>Loading...</p>
10389
) : (
10490
<JsonBlock className="w-full" collapsed={5}>

0 commit comments

Comments
 (0)