Skip to content

Commit

Permalink
fix: Badges
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsdaos committed Dec 31, 2021
1 parent ea0dc3f commit 91194ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Nomos Core

## Nomos Live

[Nomos Platform](https://h637e-ziaaa-aaaaj-aaeaa-cai.raw.ic0.app/)

## Quick Start

To learn more before you start working with icptree, see the following documentation available online:
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/view/main/account/badges/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ type Prop = {
badgesList: Array<Array<item>>;
};
const Index = (prop: Prop) => {
const badgesStatus = Array.prototype.isPrototypeOf(prop.badgesList[0]) && prop.badgesList[0].length === 0;
return (
<div>
<div className="title-text">
<span>Badges</span>
</div>
<div className="badges">
{prop.badgesList.length > 1 ? (
{!badgesStatus ? (
prop.badgesList.map((item, idx) => (
<div className="w-1/5 mr-20" key={idx}>
<Badges data={item[0].data} desc={item[0].desc} name={item[0].name} requtation={item[0].requtation} token={item[0].token} />
Expand Down

0 comments on commit 91194ac

Please sign in to comment.