Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gas tracker tooltip shows 'null' value when backend returns 'null' #1474

Closed
yvaskov opened this issue Jan 4, 2024 · 0 comments · Fixed by #1478
Closed

Gas tracker tooltip shows 'null' value when backend returns 'null' #1474

yvaskov opened this issue Jan 4, 2024 · 0 comments · Fixed by #1478
Assignees
Labels
bug Something isn't working v1.22.0 Release v1.22.0

Comments

@yvaskov
Copy link
Contributor

yvaskov commented Jan 4, 2024

Description

Widget shows null:

Image

Top bar shows nothing:

Image

Backend sample response for /api/v2/stats:

{
    "average_block_time": 16606.0,
    "coin_price": null,
    "coin_price_change_percentage": null,
    "gas_price_updated_at": null,
    "gas_prices": {
        "average": null,
        "fast": null,
        "slow": null
    },
    "gas_prices_update_in": 30000,
    "gas_used_today": "50897733280",
    "market_cap": "0",
    "network_utilization_percentage": 31.607558,
    "static_gas_price": null,
    "total_addresses": "158901510",
    "total_blocks": "10232689",
    "total_gas_used": "0",
    "total_transactions": "295253201",
    "transactions_today": "554793",
    "tvl": null
}

Proposal

Return 'N/A' instead of 'null'

Version

v1.21.0-alpha.1

@yvaskov yvaskov added the bug Something isn't working label Jan 4, 2024
@yvaskov yvaskov changed the title Gas tracker tooltip shows 'null' value instead of 0 when backend returns 'null' Gas tracker tooltip shows 'null' value when backend returns 'null' Jan 4, 2024
@isstuev isstuev mentioned this issue Jan 4, 2024
4 tasks
@isstuev isstuev self-assigned this Jan 16, 2024
@github-actions github-actions bot added pre-release Tasks in pre-release right now v1.22.0 Release v1.22.0 and removed pre-release Tasks in pre-release right now labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.22.0 Release v1.22.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants