fix for when wallet pubkey doesn't exist

This commit is contained in:
Tyler Shipe 2021-12-01 01:52:39 -05:00
parent 50c514939c
commit eb1fbb1f15
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ const TopBar = () => {
<Settings />
</div>
{mangoAccount &&
mangoAccount.owner.toBase58() === wallet?.publicKey.toBase58() ? (
mangoAccount.owner.toBase58() ===
wallet?.publicKey?.toBase58() ? (
<div className="pl-2">
<button
className="border border-th-bkg-4 py-1 px-2 rounded text-xs focus:outline-none hover:border-th-fgd-4"