Discover apps app modal opening fixes

This commit is contained in:
monilprajapati
2024-11-23 15:20:12 +05:30
parent 6a422a1eb0
commit 60509dcd18
2 changed files with 182 additions and 183 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ const AppModal = ({ open, onClose, app, userdata }) => {
<div style={{ display: "flex", flexDirection: "row", gap: 10, fontFamily: "Inter" }}>
<img
alt={app?.name}
src={app?.large_image}
src={app?.large_image || app?.image_url}
style={{
borderRadius: 4,
maxWidth: 100,
@@ -201,7 +201,7 @@ const AppModal = ({ open, onClose, app, userdata }) => {
mb: 0.3,
color: '#fff'
}}>
{app?.actions?.length}
{Array.isArray(app?.actions) ? app.actions.length : app?.actions}
</Typography>
<Typography variant="body2" sx={{ color: 'rgba(255, 255, 255, 0.7)' }}>
Actions