Skip to content

Commit 5261e63

Browse files
committed
Fix typescript error.
1 parent f686aff commit 5261e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useWebhookProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const STANDARD = WEBHOOK_PROVIDERS[0];
66
export const useWebhookProvider = () => {
77
const { provider } = useParams();
88

9-
if (!provider || provider === "") {
9+
if (!provider || provider === "" || (typeof provider !== "string")) {
1010
return STANDARD;
1111
}
1212

0 commit comments

Comments
 (0)