Skip to content

Commit

Permalink
fix: cover empty string and undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
normanzb committed Nov 25, 2024
1 parent e0fdf5a commit 7260bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frames.js/src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function isValidButtonAction(action: unknown): action is ButtonActions {

function isUrlObjectComplete(urlObject: UrlObject): boolean {
return (
"host" in urlObject &&
"protocol" in urlObject &&
"pathname" in urlObject
!!urlObject.host &&
!!urlObject.protocol &&
!!urlObject.pathname
);
}

Expand Down

0 comments on commit 7260bb9

Please sign in to comment.