PrimeDAO / prime-deals-dapp

DAO to DAO negotiations facilitated, ratified, and archived.
https://www.prime.xyz/deals
3 stars 1 forks source link

Cannot write a comment after changing the privacy setting #953

Open BartuCulha opened 2 years ago

BartuCulha commented 2 years ago

Steps to reproduce:

  1. Navigate here: https://prime-deals-staging.vercel.app/deal/ntJm5NX3WBeqiDNXCFt5QC (this is a partnered deal, make sure it is public)
  2. Connect Wallet: 0xBf3a5599f2f6CE89862d640a248e31F30B7ddF29
  3. Change Privacy settings using the Toggle Button in the dashboard
  4. Without refreshing the page try to write a comment

    Result:

    An error occurred while adding a comment. Cannot read properties of undefined (reading 'key')

ERROR [Prime Deals] An error occurred while adding a comment. Cannot read properties of undefined (reading 'key') e.error @ vendors-319a6989.aebebf5e99f9a872fb4e.bundle.js:2 (anonymous) @ vendors-319a6989.aebebf5e99f9a872fb4e.bundle.js:2 logMessage @ app-6b882012.87e34b6cd12b0c9bfad8.bundle.js:1 handleFailure @ app-6b882012.87e34b6cd12b0c9bfad8.bundle.js:1 (anonymous) @ app-6b882012.87e34b6cd12b0c9bfad8.bundle.js:1 i @ vendors-319a6989.aebebf5e99f9a872fb4e.bundle.js:2 e.publish @ vendors-319a6989.aebebf5e99f9a872fb4e.bundle.js:2 addComment @ app-31743c5a.02e968b26ccd09c42276.bundle.js:1 await in addComment (async) t.evaluate @ vendors-90a7811f.c3fd5338d3093435d3b4.bundle.js:1 e.callSource @ vendors-90a7811f.c3fd5338d3093435d3b4.bundle.js:1 e.handleEvent @ vendors-90a7811f.c3fd5338d3093435d3b4.bundle.js:1 e.handleEvent @ vendors-90a7811f.c3fd5338d3093435d3b4.bundle.js:1

Expected:

To write a comment in private

BartuCulha commented 2 years ago

An update, which is a bit confusing. When I try to write a comment to this open deal I am receiving the same error message: https://prime-deals-staging.vercel.app/deal/tRBGJ1KrS4zwbkXqZUnH