Skip to content

Commit 881bf76

Browse files
authored
fix bug where add new price feed doesnt work (#571)
1 parent d52f4d4 commit 881bf76

File tree

1 file changed

+2
-0
lines changed
  • governance/xc_admin/packages/xc_admin_frontend/components/tabs

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const General = () => {
205205
const jsonParsed = JSON.parse(json)
206206
Object.keys(jsonParsed).forEach((symbol) => {
207207
if (
208+
existingSymbols.has(symbol) &&
208209
jsonParsed[symbol].address &&
209210
jsonParsed[symbol].address !== data[symbol].address
210211
) {
@@ -218,6 +219,7 @@ const General = () => {
218219
// check if json keys "priceAccounts" key "address" key is changed
219220
Object.keys(jsonParsed).forEach((symbol) => {
220221
if (
222+
existingSymbols.has(symbol) &&
221223
jsonParsed[symbol].priceAccounts[0] &&
222224
data[symbol].priceAccounts[0] &&
223225
jsonParsed[symbol].priceAccounts[0].address &&

0 commit comments

Comments
 (0)