Skip to content

Commit

Permalink
fix(ssi credential): remove unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw committed Aug 8, 2023
1 parent f9dbfc7 commit c9263a0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function AdminCredentialElements() {
const [refresh, setRefresh] = useState<number>(0)
const [group, setGroup] = useState<string>(FilterType.ALL)
const [searchExpr, setSearchExpr] = useState<string>('')
const [filterStatus, setFilterStatus] = useState<string>()
const [filterValueAPI, setFilterValueAPI] = useState<string>('')
const [fetchHookArgs, setFetchHookArgs] = useState({})

Expand All @@ -74,7 +73,6 @@ export default function AdminCredentialElements() {
else if (viewValue === FilterType.DECLINED)
setFilterValueAPI(SubscriptionStatus.INACTIVE)
else setFilterValueAPI('')
setFilterStatus(viewValue)
setGroup(viewValue)
setRefresh(Date.now())
}
Expand All @@ -84,7 +82,7 @@ export default function AdminCredentialElements() {
filterType: filterValueAPI,
expr: searchExpr,
})
}, [filterStatus, searchExpr])
}, [filterValueAPI, searchExpr])

const onValidate = (expr: string) => {
const validateExpr = /^[ A-Za-z0-9]{1,1000}$/.test(expr)
Expand Down

0 comments on commit c9263a0

Please sign in to comment.