fix new sub account modal
This commit is contained in:
parent
809aec51e0
commit
56b590589e
|
@ -52,8 +52,8 @@ const AccountsModal: FunctionComponent<AccountsModalProps> = ({
|
|||
useEffect(() => {
|
||||
if (newAccPublicKey) {
|
||||
setMangoStore((state) => {
|
||||
state.selectedMangoAccount.current = mangoAccounts.find((ma) =>
|
||||
ma.publicKey.equals(newAccPublicKey)
|
||||
state.selectedMangoAccount.current = mangoAccounts.find(
|
||||
(ma) => ma.publicKey.toString() === newAccPublicKey
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue