Skip to content

Commit

Permalink
馃敟 Transaction modal and studio hotfixes (#43)
Browse files Browse the repository at this point in the history
* Consider wallet being null in transaction modal

* Add missing suspense for studio
  • Loading branch information
WRadoslaw committed May 7, 2024
1 parent cf8d282 commit f3e4554
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const TransactionModal: FC<TransactionModalProps> = ({ onClose, status, c
}, [decrementOverlaysOpenCount])

// @ts-ignore different wallet types before lib integration
const walletLogo = wallet?.logo ? wallet.logo.src : wallet.metadata.logoUrl || null
const walletLogo = wallet?.logo ? wallet.logo.src : wallet?.metadata.logoUrl || null

return (
<StyledModal show={!!stepDetails} className={className}>
Expand Down
10 changes: 9 additions & 1 deletion packages/atlas/src/views/studio/StudioLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,15 @@ const _StudioLayout = () => {
</Routes>
</Suspense>
</MainContainer>
{channelSet && <VideoWorkspace />}
<Suspense
fallback={
<LoadingStudioContainer>
<Spinner size="large" />
</LoadingStudioContainer>
}
>
{channelSet && <VideoWorkspace />}
</Suspense>
</>
)}
</>
Expand Down

0 comments on commit f3e4554

Please sign in to comment.