Skip to content

Commit

Permalink
Revert "Shafin/bot 582/chore inform download btn disable reason (deri…
Browse files Browse the repository at this point in the history
…v-com#10526)" (deriv-com#10670)

This reverts commit 5f0c28d.
  • Loading branch information
vinu-deriv authored Oct 13, 2023
1 parent dc8a8ef commit e85f421
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/bot-web-ui/src/components/download/download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ const Download = observer(({ tab }: TDownloadProps) => {
let clickFunction, popover_message;
if (tab === 'transactions') {
clickFunction = onClickDownloadTransaction;
disabled = !transaction_list.length || is_running;
popover_message = localize('Download your transaction history.');
if (!transaction_list.length) popover_message = localize('No transaction or activity yet.');
disabled = !transaction_list.length || is_running;
} else if (tab === 'journal') {
clickFunction = onClickDownloadJournal;
popover_message = localize('Download your journal.');
disabled = is_clear_stat_disabled;
if (disabled) popover_message = localize('No transaction or activity yet.');
}
if (is_running) popover_message = localize('Download is unavailable while your bot is running.');

return (
<Popover
className='run-panel__info'
Expand Down

0 comments on commit e85f421

Please sign in to comment.