We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4fcfb commit 4c58a64Copy full SHA for 4c58a64
packages/app/src/app/pages/common/Modals/ShareModal2/index.tsx
@@ -118,7 +118,10 @@ function ShareModal() {
118
119
// if the property is part of a preset options (not global options),
120
// then change preset to custom
121
- if (!(property in globalOptions)) newSettings.preset = 'custom';
+ const propertyName = Object.keys(property)[0];
122
+ if (Object.prototype.hasOwnProperty.call(globalOptions, propertyName)) {
123
+ newSettings.preset = 'custom';
124
+ }
125
126
return newSettings;
127
});
0 commit comments