Skip to content

Commit

Permalink
Add missing status for ConnectWalletAlert component
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 27, 2024
1 parent fd7159e commit 03cd31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const collapseVariants: Variants = {
type ConnectWalletAlertProps = AlertProps & { type?: ConnectionAlert }

export default function ConnectWalletAlert(props: ConnectWalletAlertProps) {
const { type, ...restProps } = props
const { type, status, ...restProps } = props

const data = type ? CONNECTION_ALERTS[type] : undefined

Expand All @@ -79,7 +79,7 @@ export default function ConnectWalletAlert(props: ConnectWalletAlertProps) {
overflow="hidden"
w="full"
>
<Alert status="error" mb={6} {...restProps}>
<Alert status={status} mb={6} {...restProps}>
<AlertIcon />
<VStack w="full" align="start" spacing={0}>
<AlertTitle textAlign="start">{data.title}</AlertTitle>
Expand Down

0 comments on commit 03cd31d

Please sign in to comment.