Skip to content

Commit

Permalink
Let all users attempt to Buy
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Oct 22, 2023
1 parent 5065c41 commit 94a59e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/AssetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const AssetView = ({ navigate }) => {
>
<Tab key="meta" value="meta" label={'Metadata'} />
{isToken && <Tab key="token" value="token" label={'Token'} />}
{isToken && isAuthenticated && !isDeleted && <Tab key="trade" value="trade" label={'Buy/Sell'} />}
{isToken && !isDeleted && <Tab key="trade" value="trade" label={'Buy/Sell'} />}
{isOwner && !isToken && <Tab key="edit" value="edit" label={'Edit'} />}
{isOwner && !isToken && !isDeleted && <Tab key="mint" value="mint" label={'Mint'} />}
{isOwner && !isDeleted && <Tab key="pfp" value="pfp" label={'Pfp'} />}
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/TokenTrader.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ const TokenTrader = ({ metadata, setRefreshKey }) => {
}
} catch (error) {
console.error('Error:', error);

if (error.response.status === 401) {
alert("You have to login first");
return;
}
}
};

Expand Down

0 comments on commit 94a59e1

Please sign in to comment.