mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Changing value to values
This commit is contained in:
parent
f0ae6d8118
commit
1b58fdfb9d
@ -7,7 +7,7 @@ export type CredentialAction = 'allow' | 'deny'
|
||||
|
||||
export interface Credential {
|
||||
type: CredentialType
|
||||
value: string[]
|
||||
values: string[]
|
||||
}
|
||||
|
||||
export interface Credentials {
|
||||
|
@ -97,7 +97,7 @@ export function updateCredentialDetail(
|
||||
if (exists) {
|
||||
ddo.credentials.allow.find((credential) => {
|
||||
if (credential.type === credentialType) {
|
||||
credential.value = list
|
||||
credential.values = list
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -107,7 +107,7 @@ export function updateCredentialDetail(
|
||||
if (exists) {
|
||||
ddo.credentials.deny.find((credential) => {
|
||||
if (credential.type === credentialType) {
|
||||
credential.value = list
|
||||
credential.values = list
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user