Skip to content

Commit

Permalink
fix: the transfer type ternery is not correct (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored May 20, 2024
1 parent 36b0797 commit bb6c0eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hooks/useNotificationTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ export const notificationTypes: NotificationTypeConfig[] = [
const icon = <Icon iconName={isFinished ? IconName.Transfer : IconName.Clock} />;

const transferType =
type ?? fromChainId === selectedDydxChainId
type ??
(fromChainId === selectedDydxChainId
? TransferNotificationTypes.Withdrawal
: TransferNotificationTypes.Deposit;
: TransferNotificationTypes.Deposit);

const title = stringGetter({
key: {
Expand Down

0 comments on commit bb6c0eb

Please sign in to comment.