FlipsideCrypto / badger

EVM primitive, protocol and app layer that exposes top-down management mechanisms for on-chain organizations. Badger is the key to the existing gates and locks within Web3.
https://www.trybadger.com/
MIT License
22 stars 1 forks source link

fix: editing name of object overwrites custom image #247

Open nftchance opened 1 year ago

nftchance commented 1 year ago

246 introduces a new bug I had not planned for where the name is changed, and then we generate a new image for them.

If they are using an auto-generated image, we want to update the image any time they update the name; however, if they are not using an auto-generated image, then we need to leave it so that we do not overwrite custom images a user uploads.

nftchance commented 1 year ago

This is actually quite simple to fix with a little lock if we are on a form of an object that already exists. When the lock is checked, don't generate a new image.