Skip to content

Commit

Permalink
fix(tangle-dapp): add missing query param parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Sep 2, 2024
1 parent 8f82230 commit b5e4efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/tangle-dapp/hooks/useQueryParamKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ function validateQueryParam(
switch (key) {
case QueryParamKey.DELEGATIONS_AND_PAYOUTS_TAB:
return z.nativeEnum(DelegationsAndPayoutsTab).safeParse(value).success;

case QueryParamKey.RESTAKE_OPERATOR:
case QueryParamKey.RESTAKE_VAULT:
return z.string().safeParse(value).success;
}
}

Expand Down

0 comments on commit b5e4efc

Please sign in to comment.