@@ -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