File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/chain-admin/hooks Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export const useChainUtils = (chainName: string) => {
78
78
79
79
const getExponentByDenom = ( denom : CoinDenom ) : Exponent => {
80
80
const asset = getAssetByDenom ( denom ) ;
81
- const unit = asset . denomUnits . find ( ( { denom } ) => denom === asset . display ) ;
81
+ const unit = asset ? .denomUnits . find ( ( { denom } ) => denom === asset . display ) ;
82
82
return unit ?. exponent || 0 ;
83
83
} ;
84
84
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export function useVotingData(chainName: string) {
171
171
Object . entries ( singleQueries ) . map ( ( [ key , query ] ) => [ key , query . data ] )
172
172
) as SingleQueriesData ;
173
173
174
- singleQueriesData ?. proposals . forEach ( ( proposal ) => {
174
+ singleQueriesData ?. proposals ? .forEach ( ( proposal ) => {
175
175
if ( proposal . status === ProposalStatus . PROPOSAL_STATUS_VOTING_PERIOD ) {
176
176
( async ( ) => {
177
177
for ( const { address } of chain ?. apis ?. rest || [ ] ) {
You can’t perform that action at this time.
0 commit comments