Skip to content

Commit

Permalink
fix destructuring error
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Sep 20, 2023
1 parent 230201f commit 50401dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useRoleActions = ({ name, roles, details }: Props) => {
const data = useMemo(() => {
if (isLoading) return undefined
const canSend = checkCanSend({ abilities: abilities.data, nameType: nameType.data })
const { canSendError } = abilities.data
const canSendError = abilities.data?.canSendError
const showSend = canSend || !!canSendError
const showSendDNS = showSend && name && !name.endsWith('.eth')
const showSendEth = showSend && name && name.endsWith('.eth')
Expand Down

0 comments on commit 50401dd

Please sign in to comment.