1
0
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:
Jamie Hewitt 2021-08-03 14:10:04 +02:00
parent f0ae6d8118
commit 1b58fdfb9d
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ export type CredentialAction = 'allow' | 'deny'
export interface Credential {
type: CredentialType
value: string[]
values: string[]
}
export interface Credentials {

View File

@ -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 {