Skip to content

Commit 8c57458

Browse files
authored
Remove code that checks duplicated (#563)
1 parent f1c5aba commit 8c57458

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

governance/xc_admin/packages/xc_admin_frontend/components/tabs/UpdateProductMetadata.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ const UpdateProductMetadata = () => {
167167
return false
168168
}
169169

170-
// check for duplicate keys in jsonParsed
171-
const jsonSymbolsSet = new Set(jsonSymbols)
172-
if (jsonSymbols.length !== jsonSymbolsSet.size) {
173-
toast.error('Duplicate symbols in json file!')
174-
return false
175-
}
176-
177170
let isValid = true
178171
// check that the keys of the values of json are equal to the keys of the values of data
179172
jsonSymbols.forEach((symbol) => {

0 commit comments

Comments
 (0)