Skip to content

Commit

Permalink
fix: execute message correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 26, 2024
1 parent 46f99ab commit 1a9428a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Page/Dashboard/MessageModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import NotificationModal from '@/components/Page/Dashboard/NotificationModal'
import { MissedRelayer } from '@/utils/relayer'
import { Message } from '@/utils/xcall-fetcher'
import React, { useEffect, useState } from 'react'
import { Button, Modal } from 'react-bootstrap'
Expand All @@ -13,7 +14,7 @@ async function findMissedBy(
message: Message
): Promise<{ id: string; name: string; txHash: string; data: any }[] | null> {
let response: Response
let data: any
let data: MissedRelayer[]
let result: { id: string; name: string; txHash: string; data: any }[] = []

switch (message.status) {
Expand Down Expand Up @@ -55,7 +56,7 @@ async function findMissedBy(
}
}
}
return data
return result
}

const MessageModal: React.FC<MessageModalProps> = ({ show, handleClose, message }) => {
Expand Down

0 comments on commit 1a9428a

Please sign in to comment.