snapshot-labs / sx-monorepo

Snapshot monorepo
https://snapshot.box
MIT License
13 stars 11 forks source link

fix: hide empty execution for SX proposals #491

Closed Sekhmet closed 2 months ago

Sekhmet commented 2 months ago

Summary

If execution has no transactions executions array should be empty. Right now every proposal has empty execution.

How to test

  1. Go to proposal without execution on SX: http://localhost:8080/#/sn-sep:0x012f384aacce933c2a346ade9a6c2918ece850b04db54efbf716c1a9fcb344da/proposal/5
  2. It has no execution.
  3. Proposals with executions still do (you need to enable s-tn network): http://localhost:8080/#/s-tn:0cf5e.eth/proposal/0x18b4c85fb3dba579b2714a3fcdba5ea96088f9f0a51f02002e81cc39a589d674

Screenshots

Before:

image

After:

image