Skip to content

Commit

Permalink
Rostislav / 86373 / Bug fix for side note on cashier page going missi…
Browse files Browse the repository at this point in the history
…ng once we navigate to different tabs like Withdrawal, Payments agents (binary-com#7416)

* refactor: init pr

* fix: bug fixed (by correctly timing adding side notes)
  • Loading branch information
rostislav-deriv authored and Carol Sachdeva committed Feb 9, 2023
1 parent bfaa954 commit c54caf5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const CashierOnboarding = observer(({ setSideNotes }) => {
const {
has_set_currency,
onMountCashierOnboarding,
is_cashier_onboarding,
setIsCashierOnboarding,
setIsDeposit,
setDepositTarget,
Expand Down Expand Up @@ -88,7 +89,7 @@ const CashierOnboarding = observer(({ setSideNotes }) => {
setSideNotes([<CashierOnboardingSideNote key={0} is_crypto={is_crypto} />]);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [is_switching, accounts, is_landing_company_loaded]);
}, [is_switching, accounts, is_landing_company_loaded, is_cashier_onboarding]);

const openRealAccount = target => {
openRealAccountSignup('choose');
Expand Down

0 comments on commit c54caf5

Please sign in to comment.