Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit d5e031e

Browse files
authored
Merge pull request #232 from sanjam-deriv/markupupdate
2 parents 3473cb5 + 6867f48 commit d5e031e

File tree

1 file changed

+1
-13
lines changed
  • src/features/dashboard/components/AppForm

1 file changed

+1
-13
lines changed

src/features/dashboard/components/AppForm/index.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ const AppForm = ({
8989
return admin_check_array.includes(true);
9090
};
9191

92-
const disableMarkup = useMemo(() => {
93-
let isDisabled;
94-
isNotDemoCurrency(currentLoginAccount) === 'Demo' ? (isDisabled = true) : (isDisabled = false);
95-
return isDisabled;
96-
}, [currentLoginAccount]);
97-
9892
const AccountErrorMessage = () => (
9993
<React.Fragment>
10094
{!accountHasAdminToken() && (
@@ -211,12 +205,7 @@ const AppForm = ({
211205
</div>
212206
<div>
213207
<div>
214-
<div
215-
className={clsx(styles.customTextInput, {
216-
[styles.disableTokenDropdown]: disableMarkup,
217-
})}
218-
id='custom-text-input'
219-
>
208+
<div className={clsx(styles.customTextInput)} id='custom-text-input'>
220209
<input
221210
{...register('app_markup_percentage')}
222211
type='number'
@@ -225,7 +214,6 @@ const AppForm = ({
225214
className='last'
226215
defaultValue={0}
227216
placeholder=' '
228-
disabled={disableMarkup}
229217
/>
230218
<label htmlFor='app_markup_percentage'>Markup percentage (optional)</label>
231219
</div>

0 commit comments

Comments
 (0)