Skip to content

Commit

Permalink
fix: guide issue on purchase error (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv authored Aug 9, 2024
1 parent c6b9022 commit 56e07e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/javascript/app/pages/trade/guide.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { LabelPairedPresentationScreenMdBoldIcon } from '@deriv/quill-icons/Labe
import { getElementById } from '../../../_common/common_functions';
import { localize } from '../../../_common/localize.js';
import Guide from '../../common/guide.js';
import dataManager from '../../common/data_manager.js';

const GuideBtn = () => {
useEffect(() => {
Expand All @@ -24,6 +25,11 @@ const GuideBtn = () => {
color='black'
label={localize('Guide')}
icon={<LabelPairedPresentationScreenMdBoldIcon />}
onClick={() => {
dataManager.setPurchase({
error: null,
});
}}
/>
);
};
Expand Down

0 comments on commit 56e07e6

Please sign in to comment.