Skip to content

Commit

Permalink
chore: change content check
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 18, 2024
1 parent 9a7c00e commit 4683576
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/Transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ function TransactionDetailRow(props: {

function PodcastingInfo({ boost }: { boost: Boostagram }) {
const renderDetail = (title: string, content: any) => {
// we want to check if content is not undefined, null or empty string
if (content != null && content !== "") {
if (content === 0 || !!content) {
return <TransactionDetailRow title={title} content={String(content)} />;
}
return null;
Expand Down

0 comments on commit 4683576

Please sign in to comment.