Skip to content

Commit 4c58a64

Browse files
committed
linters be linting
1 parent 6a4fcfb commit 4c58a64

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/app/pages/common/Modals/ShareModal2

1 file changed

+4
-1
lines changed

packages/app/src/app/pages/common/Modals/ShareModal2/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ function ShareModal() {
118118

119119
// if the property is part of a preset options (not global options),
120120
// then change preset to custom
121-
if (!(property in globalOptions)) newSettings.preset = 'custom';
121+
const propertyName = Object.keys(property)[0];
122+
if (Object.prototype.hasOwnProperty.call(globalOptions, propertyName)) {
123+
newSettings.preset = 'custom';
124+
}
122125

123126
return newSettings;
124127
});

0 commit comments

Comments
 (0)