Skip to content

Commit d845060

Browse files
committed
fix: wrong property
1 parent 5978733 commit d845060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/src/hooks/UseListener.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ChannelPeerAlias: FC<{ id: string }> = ({ id }) => {
4343
};
4444

4545
export const useListener = (disabled?: boolean) => {
46-
const { channels, failedForwards, forwards, invoices, payments, autoClose } =
46+
const { channels, forwardAttempts, forwards, invoices, payments, autoClose } =
4747
useNotificationState();
4848

4949
const options: { autoClose?: false; closeOnClick: boolean } = useMemo(() => {
@@ -160,7 +160,7 @@ export const useListener = (disabled?: boolean) => {
160160

161161
if (is_send || is_receive) return;
162162

163-
if (!is_confirmed && failedForwards) {
163+
if (!is_confirmed && forwardAttempts) {
164164
toast.warn(
165165
renderToast(
166166
'Forward Attempt',
@@ -194,7 +194,7 @@ export const useListener = (disabled?: boolean) => {
194194
handleRefetchQueries(['GetForwards']);
195195
}
196196
},
197-
[handleRefetchQueries, failedForwards, forwards, options]
197+
[handleRefetchQueries, forwardAttempts, forwards, options]
198198
);
199199

200200
const handleClosed = useCallback(

0 commit comments

Comments
 (0)