Skip to content

Commit d348f72

Browse files
committed
isErrorWithMessage addition
1 parent f7c35cc commit d348f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cookbook/app/network-requests/PhoneBook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ const isErrorWithMessage = (
4949
e: unknown,
5050
): e is {
5151
message: string;
52-
} => typeof e === 'object' && e !== null && 'foo' in e;
52+
} => typeof e === 'object' && e !== null && 'message' in e;

0 commit comments

Comments
 (0)