Skip to content

Commit

Permalink
Fix: Pass networkInverseFee to getActionTitleValues for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsamgibbs committed Oct 24, 2024
1 parent 48be62f commit 37f7021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
useGetColonyActionQuery,
useGetUserByAddressQuery,
} from '~gql';
import useNetworkInverseFee from '~hooks/useNetworkInverseFee.ts';
import { TX_SEARCH_PARAM } from '~routes';
import { type Notification as NotificationInterface } from '~types/notifications.ts';
import { formatText } from '~utils/intl.ts';
Expand All @@ -33,6 +34,7 @@ const ActionNotification: FC<NotificationProps> = ({
loadingColony,
notification,
}) => {
const { networkInverseFee } = useNetworkInverseFee();
const navigate = useNavigate();

const { creator, notificationType, transactionHash } =
Expand Down Expand Up @@ -80,6 +82,7 @@ const ActionNotification: FC<NotificationProps> = ({
},
metadata: colony.metadata,
},
networkInverseFee,
}),
);
}, [action, colony]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
useGetExpenditureQuery,
ColonyActionType,
} from '~gql';
import useNetworkInverseFee from '~hooks/useNetworkInverseFee.ts';
import { TX_SEARCH_PARAM } from '~routes';
import { type Notification as NotificationInterface } from '~types/notifications.ts';
import { formatText } from '~utils/intl.ts';
Expand All @@ -34,6 +35,7 @@ const ExpenditureNotification: FC<NotificationProps> = ({
loadingColony,
notification,
}) => {
const { networkInverseFee } = useNetworkInverseFee();
const navigate = useNavigate();

const {
Expand Down Expand Up @@ -144,6 +146,7 @@ const ExpenditureNotification: FC<NotificationProps> = ({
metadata: colony.metadata,
},
expenditureData: expenditure ?? undefined,
networkInverseFee,
}),
);
}, [action, expenditure, colony]);
Expand Down

0 comments on commit 37f7021

Please sign in to comment.