Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/features/dashboard/components/AppForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ const AppForm = ({
return admin_check_array.includes(true);
};

const disableMarkup = useMemo(() => {
let isDisabled;
isNotDemoCurrency(currentLoginAccount) === 'Demo' ? (isDisabled = true) : (isDisabled = false);
return isDisabled;
}, [currentLoginAccount]);

const AccountErrorMessage = () => (
<React.Fragment>
{!accountHasAdminToken() && (
Expand Down Expand Up @@ -211,12 +205,7 @@ const AppForm = ({
</div>
<div>
<div>
<div
className={clsx(styles.customTextInput, {
[styles.disableTokenDropdown]: disableMarkup,
})}
id='custom-text-input'
>
<div className={clsx(styles.customTextInput)} id='custom-text-input'>
<input
{...register('app_markup_percentage')}
type='number'
Expand All @@ -225,7 +214,6 @@ const AppForm = ({
className='last'
defaultValue={0}
placeholder=' '
disabled={disableMarkup}
/>
<label htmlFor='app_markup_percentage'>Markup percentage (optional)</label>
</div>
Expand Down