Skip to content

Commit

Permalink
Checks for existence of bridgeTransactions field
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Oct 11, 2024
1 parent 27019dc commit c94c298
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const destinationTxController = async (req, res) => {
})

const graphqlData = await graphqlResponse.json()
const toInfo = graphqlData.data.bridgeTransactions[0]?.toInfo || null
const toInfo = graphqlData.data.bridgeTransactions?.[0]?.toInfo || null

if (toInfo) {
const { tokenAddress, value, chainID, ...restToInfo } = toInfo
Expand Down

0 comments on commit c94c298

Please sign in to comment.