Skip to content

Commit

Permalink
fix: Add another condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Oct 3, 2023
1 parent 24a06e6 commit d85026c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ const WorldListPage: React.FC<Props> = props => {
const renderWorldStatus = (ens: ENS) => {
let status = isWorldDeployed(ens) ? 'active' : 'inactive'

if (status === 'active' && worldsWalletStats && !isExternalName(ens.subdomain)) {
if (
status === 'active' &&
worldsWalletStats &&
!isExternalName(ens.subdomain) &&
worldsWalletStats.usedSpace > worldsWalletStats.maxAllowedSpace
) {
const blockedSince = new Date(worldsWalletStats.blockedSince).getTime()
const now = new Date().getTime()

Expand Down

0 comments on commit d85026c

Please sign in to comment.