Skip to content

Commit d6fe402

Browse files
committed
fix: enforce consistent return type in useIncomingStreams onMutate
1 parent 3cab838 commit d6fe402

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/hooks/useIncomingStreams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function useWithdrawIncomingStream(
5050
},
5151
onMutate: async (stream) => {
5252
if (!publicKey) {
53-
return {};
53+
return { previousStreams: undefined, expectedWithdrawn: stream.withdrawn };
5454
}
5555

5656
// Cancel any outgoing refetches (so they don't overwrite our optimistic update)

0 commit comments

Comments
 (0)