Skip to content

Commit 988f0fb

Browse files
committed
pushing blocker
1 parent 40ebfbe commit 988f0fb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/common/apiCalls/jiffyApis.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface UserOp {
3333
paymasterAndData: string | null;
3434
signature: string | null;
3535
entryPoint: string;
36+
block: true;
3637
erc20Transfers: {
3738
contractAddress: string;
3839
from: string;

src/views/userOp/UserOperation.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ function RecentUserOps(props: any) {
138138
const [duplicateUserOpsRows, setDuplicateUserOpsRows] = useState<tableDataT['rows']>([] as tableDataT['rows']);
139139
const {data: sessionData} = useSession()
140140
const sessions = sessionData as unknown as UserInfo;
141+
const [block, setBlock] = useState(false);
141142

142143
async function returnUserOpData(hash: string, toast: any) {
143144
let currentTime = (new Date()).getTime();
@@ -165,6 +166,9 @@ function RecentUserOps(props: any) {
165166
let rows: tableDataT['rows'] = createDuplicateUserOpsRows(userOps, handleDuplicateRowClick);
166167
setDuplicateUserOpsRows(rows);
167168
if (userOps.length > 1) setShowUserOpId(-1);
169+
else {
170+
if (userOps[0].block) setBlock(true);
171+
}
168172

169173
if (userOps[0] && userOps[0].network) {
170174
setSelectedNetwork(userOps[0].network);
@@ -179,6 +183,7 @@ function RecentUserOps(props: any) {
179183
setShowUserOpId(id);
180184
};
181185

186+
182187
let prevHash = hash;
183188
useEffect(() => {
184189
// Check if hash or network have changed
@@ -258,8 +263,8 @@ function RecentUserOps(props: any) {
258263
</div>
259264
</div>
260265
</section>
261-
{!session && <Paywall></Paywall>}
262-
<div className={`${!session && 'blur'}`}>
266+
{block && <Paywall></Paywall>}
267+
<div className={`${block && 'blur'}`}>
263268
{showUserOpId >= 0 ? (
264269
<>
265270
<HeaderSection item={userOpsData?.[showUserOpId]} network={network} loading={tableLoading}/>

0 commit comments

Comments
 (0)