()
| 183 | const allChecked = tokens.length > 0 && checkedCount === tokens.length; |
| 184 | |
| 185 | const toggleAll = () => { |
| 186 | if (allChecked) { |
| 187 | setCheckedRecords({}); |
| 188 | } else { |
| 189 | setCheckedRecords( |
| 190 | Object.fromEntries( |
| 191 | tokens.map((t) => [t.contract_address, { isChecked: true }]), |
| 192 | ), |
| 193 | ); |
| 194 | } |
| 195 | }; |
| 196 | |
| 197 | if (loading) { |
| 198 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected